From 8f9e965be28376c3034b33fd545b428f44fa70a0 Mon Sep 17 00:00:00 2001 From: dec05eba 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