Mercurial > hg > bitcoin
changeset 2524:0078b8632750 draft
Do not signal outbound semaphore if uninitialized
author | Pieter Wuille <pieter.wuille@gmail.com> |
---|---|
date | Sat, 12 May 2012 17:44:14 +0200 |
parents | 27cdac71f9a0 |
children | cb47434e91ac |
files | src/net.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/net.cpp +++ b/src/net.cpp @@ -1887,8 +1887,9 @@ 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;