diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 07:27:56 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 07:27:56 -0700 |
commit | 8bc52d069247b3c7968bbb5c9ced9e6a7baa57e8 (patch) | |
tree | 5f1dc565a37a648050d3a69e446df31c0debb955 | |
parent | 9ec4fa7b50e6389cab5792acd4210397c77f9f44 (diff) | |
parent | 65ba3e2f5024e1e38e119a0c25d5fc30c896cd65 (diff) |
Merge pull request #558 from luke-jr/bugfix_CreateThread_ThreadSocketHandler_errReporting
Bugfix: ThreadSocketHandler creation error
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index b1069132ce..0e861236df 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1767,7 +1767,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)) |