X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f5bda17b36fbe71813b5e7cc11a322b775c5ce7..243d4b360385d3364e96d5600f693139e359fb3b:/src/common/http.cpp diff --git a/src/common/http.cpp b/src/common/http.cpp index d147823f15..52f6e362c7 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -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;