Avoid immediate destruction of temporary wxBusyInfo object

This commit is contained in:
Paul Cornett
2019-04-05 09:23:40 -07:00
parent 210e162302
commit 67773f58f1

View File

@@ -305,7 +305,7 @@ void MyFrame::OnWaitForAccept(wxCommandEvent& WXUNUSED(event))
{
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) )
wxLogMessage("Accepted client connection.");
else