mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-18 16:43:57 +08:00
network::tcp::client::ConnectionProvider: Fix windows build.
This commit is contained in:
parent
d74d6b2308
commit
114024766f
@ -282,7 +282,10 @@ oatpp::async::CoroutineStarterForResult<const provider::ResourceHandle<data::str
|
||||
auto error = WSAGetLastError();
|
||||
|
||||
if(res == 0 || error == WSAEISCONN) {
|
||||
return _return(std::make_shared<oatpp::network::tcp::Connection>(m_clientHandle));
|
||||
return _return(provider::ResourceHandle<data::stream::IOStream>(
|
||||
std::make_shared<oatpp::network::tcp::Connection>(m_clientHandle),
|
||||
m_connectionInvalidator
|
||||
));
|
||||
}
|
||||
if(error == WSAEWOULDBLOCK || error == WSAEINPROGRESS) {
|
||||
return ioWait(m_clientHandle, oatpp::async::Action::IOEventType::IO_EVENT_WRITE);
|
||||
|
Loading…
Reference in New Issue
Block a user