aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-06-08 02:24:50 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit8f9e965be28376c3034b33fd545b428f44fa70a0 (patch)
tree6e25b0de2b3966952a3e700868ac45028c593d47 /src
parent9a70f5d6f2cd16152c67cd065d7083edf0bff159 (diff)
Fix send method when not using callback func
Diffstat (limited to 'src')
-rw-r--r--src/DirectConnection.cpp3
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();
}