From ad8b849872f49e3215c9157c0ea62cd5379e5684 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 24 Aug 2001 19:42:13 +0000 Subject: [PATCH] added connect sequence for mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/http.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.45.2