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:
parent
79da309276
commit
ad8b849872
@ -308,8 +308,16 @@ wxInputStream *wxHTTP::GetInputStream(const wxString& path)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
// We set m_connected back to FALSE so wxSocketBase will know what to do.
|
// 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))
|
if (!wxProtocol::Connect(*m_addr))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!BuildRequest(path, wxHTTP_GET))
|
if (!BuildRequest(path, wxHTTP_GET))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user