From 67773f58f196800c3c49895b137b88daddfdc910 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 5 Apr 2019 09:23:40 -0700 Subject: [PATCH] Avoid immediate destruction of temporary wxBusyInfo object --- samples/sockets/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/sockets/server.cpp b/samples/sockets/server.cpp index f0bdb80161..f30be0e16c 100644 --- a/samples/sockets/server.cpp +++ b/samples/sockets/server.cpp @@ -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