From 3153cf4df655b73b95a3d5f8f7a429f361058367 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 13 Oct 2014 12:35:44 -0400 Subject: [PATCH] fixed race condition --- Destination.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Destination.cpp b/Destination.cpp index 7148ed11..ef0ee5da 100644 --- a/Destination.cpp +++ b/Destination.cpp @@ -108,7 +108,8 @@ namespace stream if (m_Pool) i2p::tunnel::tunnels.StopTunnelPool (m_Pool); m_IsRunning = false; - m_Service->stop (); + if (m_Service) + m_Service->stop (); if (m_Thread) { m_Thread->join ();