mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
fix crash when udp not in use
This commit is contained in:
parent
ffa983db94
commit
eccd31472f
1 changed files with 1 additions and 1 deletions
|
@ -1948,7 +1948,7 @@ main( int argc, char** argv )
|
|||
// run_ctrl_thread( g_control );
|
||||
--retval;
|
||||
}
|
||||
if ( FD_ISSET( g_udpsock, &rfds ) ) {
|
||||
if ( -1 != g_udpsock && FD_ISSET( g_udpsock, &rfds ) ) {
|
||||
// This will need to be done in a separate thread, or pushed
|
||||
// to the existing thread pool
|
||||
handle_udp_packet( g_udpsock );
|
||||
|
|
Loading…
Reference in a new issue