diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-06-08 02:24:50 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | 8f9e965be28376c3034b33fd545b428f44fa70a0 (patch) | |
tree | 6e25b0de2b3966952a3e700868ac45028c593d47 | |
parent | 9a70f5d6f2cd16152c67cd065d7083edf0bff159 (diff) |
Fix send method when not using callback func
-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(); } |