aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-04-30 12:09:07 -0700
committerGregory Maxwell <greg@xiph.org>2013-04-30 12:09:07 -0700
commiteef2091fe9ee39ecd8e874c91d3ab0ff023c5356 (patch)
tree988b3a9c0f7f48b97709f9584ec5743879135c4d /src
parent1c621e70bee7575cdf31a08c42eeee3db2b7fdbf (diff)
parent788064dd12ab7a7075ad24771f377587ad93b68d (diff)
Merge pull request #2595 from sipa/noannloc
Don't announce to non-peer CNodes
Diffstat (limited to 'src')
-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();
}