From b9806ac86bb8e87c73b6088bb15dc917d04185cc Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 26 Nov 2014 21:59:07 -0500 Subject: [PATCH] fixed crash --- Destination.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Destination.cpp b/Destination.cpp index 8000a483..12d6c84d 100644 --- a/Destination.cpp +++ b/Destination.cpp @@ -174,12 +174,14 @@ namespace client void ClientDestination::ProcessGarlicMessage (I2NPMessage * msg) { - m_Service->post (std::bind (&ClientDestination::HandleGarlicMessage, this, msg)); + if (m_Service) + m_Service->post (std::bind (&ClientDestination::HandleGarlicMessage, this, msg)); } void ClientDestination::ProcessDeliveryStatusMessage (I2NPMessage * msg) { - m_Service->post (std::bind (&ClientDestination::HandleDeliveryStatusMessage, this, msg)); + if (m_Service) + m_Service->post (std::bind (&ClientDestination::HandleDeliveryStatusMessage, this, msg)); } void ClientDestination::HandleI2NPMessage (const uint8_t * buf, size_t len, i2p::tunnel::InboundTunnel * from)