Skip to content

Commit 89b5616

Browse files
committed
Do not signal outbound semaphore if uninitialized
1 parent 45dcf63 commit 89b5616

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/net.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,8 +1887,9 @@ bool StopNode()
18871887
fShutdown = true;
18881888
nTransactionsUpdated++;
18891889
int64 nStart = GetTime();
1890-
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
1891-
semOutbound->post();
1890+
if (semOutbound)
1891+
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
1892+
semOutbound->post();
18921893
do
18931894
{
18941895
int nThreadsRunning = 0;

0 commit comments

Comments
 (0)