Bugfix: report error creating ThreadSocketHandler thread just like the rest
authorLuke Dashjr <luke-jr+git@utopios.org>
Tue, 4 Oct 2011 03:45:42 +0000 (23:45 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 4 Oct 2011 03:45:42 +0000 (23:45 -0400)
src/net.cpp

index 2e257a6..f5e8b71 100644 (file)
@@ -1713,7 +1713,8 @@ void StartNode(void* parg)
         printf("Error: CreateThread(ThreadIRCSeed) failed\n");
 
     // Send and receive from sockets, accept connections
-    CreateThread(ThreadSocketHandler, NULL);
+    if (!CreateThread(ThreadSocketHandler, NULL))
+        printf("Error: CreateThread(ThreadSocketHandler) failed\n");
 
     // Initiate outbound connections
     if (!CreateThread(ThreadOpenConnections, NULL))