Avoid immediate destruction of temporary wxBusyInfo object
This commit is contained in:
@@ -305,7 +305,7 @@ void MyFrame::OnWaitForAccept(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
TestLogger logtest("WaitForAccept() test");
|
TestLogger logtest("WaitForAccept() test");
|
||||||
|
|
||||||
wxBusyInfo("Waiting for connection for 10 seconds...", this);
|
wxBusyInfo info("Waiting for connection for 10 seconds...", this);
|
||||||
if ( m_server->WaitForAccept(10) )
|
if ( m_server->WaitForAccept(10) )
|
||||||
wxLogMessage("Accepted client connection.");
|
wxLogMessage("Accepted client connection.");
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user