Skip to content

Commit

Permalink
Style...
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenblit committed Aug 27, 2019
1 parent f382a8f commit 3422361
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pol-core/clib/network/wnsckt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 3422361

Please sign in to comment.