Skip to content
Permalink
Browse files

Style...

  • Loading branch information...
frozenblit committed Aug 27, 2019
1 parent f382a8f commit 3422361f807a030707a4345481c670a43bbcd47e
Showing with 3 additions and 2 deletions.
  1. +3 −2 pol-core/clib/network/wnsckt.cpp
@@ -679,7 +679,8 @@ bool SocketLineReader::try_readline( std::string& out, bool* timed_out )
return false;
}
int bytes_read = -1;
if ( !_socket.recvdata_nowait( buffer.data(), static_cast<unsigned>(buffer.size()), &bytes_read ) )
if ( !_socket.recvdata_nowait( buffer.data(), static_cast<unsigned>( buffer.size() ),
&bytes_read ) )
return false;

// store current line size so we don't need to search from the beginning again
@@ -732,7 +733,7 @@ bool SocketLineReader::readline( std::string& out, bool* timed_out )
out = "";
if ( timed_out )
*timed_out = false;

const int max_timeouts = ( _timeout_secs * 1000 ) / _waitms;
bool single_timed_out = false;

0 comments on commit 3422361

Please sign in to comment.
You can’t perform that action at this time.