X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8d628fcc5a14ee693f8acff663ba5b48ecb0114..cb0791531fff2f3673e28d68be67a0ee5398a036:/src/common/http.cpp?ds=sidebyside diff --git a/src/common/http.cpp b/src/common/http.cpp index 259678ef7b..bea35a2335 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -239,9 +239,8 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req) SaveState(); // we may use non blocking sockets only if we can dispatch events from them - SetFlags( wxIsMainThread() && (wxTheApp && wxTheApp->IsMainLoopRunning()) - ? wxSOCKET_NONE - : wxSOCKET_BLOCK ); + SetFlags( wxIsMainThread() && wxApp::IsMainLoopRunning() ? wxSOCKET_NONE + : wxSOCKET_BLOCK ); Notify(false); wxString buf;