made IsMainLoopRunning() static and implemented it for wxAppConsole too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-10-04 20:21:44 +00:00
parent 30bbdf96e5
commit 9b0db4529f
3 changed files with 10 additions and 6 deletions

View File

@@ -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;