fix crash when udp not in use

This commit is contained in:
Eric House 2013-05-27 16:17:58 -07:00
parent ffa983db94
commit eccd31472f

View file

@ -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 );