added connect sequence for mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-08-24 19:42:13 +00:00
parent 79da309276
commit ad8b849872

View File

@ -308,8 +308,16 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path)
return NULL;
// We set m_connected back to FALSE so wxSocketBase will know what to do.
#ifdef __WXMAC__
wxSocketClient::Connect(*m_addr , FALSE );
wxSocketClient::WaitOnConnect(10);
if (!wxSocketClient::IsConnected())
return NULL;
#else
if (!wxProtocol::Connect(*m_addr))
return NULL;
#endif
if (!BuildRequest(path, wxHTTP_GET))
return NULL;