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(); }