diff options
| author | Pieter Wuille <[email protected]> | 2012-05-12 17:44:14 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-13 00:49:12 +0200 |
| commit | 89b5616d107294a1f496226f22b9966e4221cf35 (patch) | |
| tree | b037119fd4bbe79a317490d7510e92c644df450d /src/net.cpp | |
| parent | Only check for port# after : in ConnectSocketByName (diff) | |
| download | discoin-89b5616d107294a1f496226f22b9966e4221cf35.tar.xz discoin-89b5616d107294a1f496226f22b9966e4221cf35.zip | |
Do not signal outbound semaphore if uninitialized
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index f12afb78e..0e5a89878 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1887,8 +1887,9 @@ bool StopNode() fShutdown = true; nTransactionsUpdated++; int64 nStart = GetTime(); - for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++) - semOutbound->post(); + if (semOutbound) + for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++) + semOutbound->post(); do { int nThreadsRunning = 0; |