git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a0ea95d
)
fix an incorrect if-clause in net.cpp
author
Philip Kaufmann
<phil.kaufmann@t-online.de>
Tue, 8 May 2012 21:02:48 +0000 (23:02 +0200)
committer
Luke Dashjr
<luke-jr+git@utopios.org>
Wed, 6 Jun 2012 19:37:53 +0000 (19:37 +0000)
src/net.cpp
patch
|
blob
|
history
diff --git
a/src/net.cpp
b/src/net.cpp
index
04d278c
..
a9f6c87
100644
(file)
--- a/
src/net.cpp
+++ b/
src/net.cpp
@@
-868,7
+868,7
@@
void ThreadSocketHandler2(void* parg)
if (nSelect == SOCKET_ERROR)
{
int nErr = WSAGetLastError();
- if (hSocketMax > -1)
+ if (hSocketMax != INVALID_SOCKET)
{
printf("socket select error %d\n", nErr);
for (unsigned int i = 0; i <= hSocketMax; i++)