diff options
-rw-r--r-- | src/DirectConnection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |