From b4eeb4aa9488daf578f49a3012da1d8d0d5c98e0 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Fri, 8 Jun 2018 02:24:50 +0200 Subject: Fix send method when not using callback func --- src/DirectConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp index 6001ebc..748a936 100644 --- a/src/DirectConnection.cpp +++ b/src/DirectConnection.cpp @@ -119,7 +119,8 @@ namespace sibs } sentSizeTotal += sentSize; } - sendDataCallbackFunc(PubSubResult::OK, ""); + if(sendDataCallbackFunc) + sendDataCallbackFunc(PubSubResult::OK, ""); }).detach(); } -- cgit v1.2.3