aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index df34f5a88d..af66eed070 100644
--- a/src/net.h
+++ b/src/net.h
@@ -256,7 +256,7 @@ public:
pfilter = NULL;
// Be shy and don't send version until we hear
- if (!fInbound)
+ if (hSocket != INVALID_SOCKET && !fInbound)
PushVersion();
}