git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Merge branch '0.4.x' into 0.5.x
[novacoin.git]
/
src
/
net.cpp
diff --git
a/src/net.cpp
b/src/net.cpp
index
ebdc1cc
..
8384251
100644
(file)
--- a/
src/net.cpp
+++ b/
src/net.cpp
@@
-914,7
+914,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++)