]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/watchbsp.cpp
error handling in watchbsp (contributed by ilm)
[xonotic/netradiant.git] / radiant / watchbsp.cpp
index 314921a386517d8784fb569cda3022e5045a575f..2c85e57abdafeee9c71ee0b92db862ba4d04d0ca 100644 (file)
@@ -305,10 +305,13 @@ bool CWatchBSP::SetupListening()
   }
 #endif
   Sys_Printf("Setting up\n");
-       Net_Setup();
-       m_pListenSocket = Net_ListenSocket(39000);
+  if( !Net_Setup() )
+    return false;
+
+  m_pListenSocket = Net_ListenSocket(39000);
   if (m_pListenSocket == NULL)
     return false;
+
   Sys_Printf("Listening...\n");
   return true;
 }