• R/O
  • SSH
  • HTTPS

tidesnet: Commit


Commit MetaInfo

Revision17 (tree)
Time2018-08-11 13:54:47
Authorquiret

Log Message

- tiny improvement

Change Summary

Incremental Difference

--- library/src/main.cpp (revision 16)
+++ library/src/main.cpp (revision 17)
@@ -166,8 +166,10 @@
166166 LINGER linger;
167167 linger.l_onoff = 1;
168168 linger.l_linger = 30;
169- setsockopt( sysSocket, SOL_SOCKET, SO_LINGER, (const char*)&linger, sizeof(linger) );
169+ int error = setsockopt( sysSocket, SOL_SOCKET, SO_LINGER, (const char*)&linger, sizeof(linger) );
170170
171+ assert( error == 0 );
172+
171173 return sysSocket;
172174 }
173175 #endif //_WIN32
Show on old repository browser