From 65ba3e2f5024e1e38e119a0c25d5fc30c896cd65 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Mon, 3 Oct 2011 23:45:42 -0400 Subject: [PATCH] Bugfix: report error creating ThreadSocketHandler thread just like the rest --- src/net.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 2e257a6e..f5e8b71c 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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))