Changeset 2794 for code/branches/netp/src/network/ClientConnection.cc
- Timestamp:
- Mar 17, 2009, 12:49:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp/src/network/ClientConnection.cc
r2773 r2794 42 42 #include <enet/enet.h> 43 43 #include <iostream> 44 #include <cassert> 44 45 // boost.thread library for multithreading support 45 46 #include <boost/thread/thread.hpp> … … 166 167 if(enet_host_service(client, event, NETWORK_CLIENT_WAIT_TIME)<0){ 167 168 // we should never reach this point 169 assert(0); 168 170 quit=true; 169 171 continue; … … 206 208 boost::recursive_mutex::scoped_lock lock(enet_mutex_g); 207 209 enet_peer_disconnect(server, 0); 208 while(enet_host_service(client, &event, NETWORK_CLIENT_WAIT_TIME) > 0){210 while(enet_host_service(client, &event, NETWORK_CLIENT_WAIT_TIME) >= 0){ 209 211 switch (event.type) 210 212 {
Note: See TracChangeset
for help on using the changeset viewer.