diff options
| author | Luke Dashjr <[email protected]> | 2011-10-03 23:45:42 -0400 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2011-10-03 23:45:42 -0400 |
| commit | 65ba3e2f5024e1e38e119a0c25d5fc30c896cd65 (patch) | |
| tree | 6c013f7e931c0fc07ff5d59f1e14529aabf175d7 /src/net.cpp | |
| parent | Merge pull request #527 from TheBlueMatt/gitian-downloader (diff) | |
| download | discoin-65ba3e2f5024e1e38e119a0c25d5fc30c896cd65.tar.xz discoin-65ba3e2f5024e1e38e119a0c25d5fc30c896cd65.zip | |
Bugfix: report error creating ThreadSocketHandler thread just like the rest
Diffstat (limited to 'src/net.cpp')
| -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 2e257a6ef..f5e8b71c0 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)) |