aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-06-08 02:24:50 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-06-08 02:25:08 +0200
commitb4eeb4aa9488daf578f49a3012da1d8d0d5c98e0 (patch)
tree33e8d14dbc955b0cee50bac3813e2d7d3491cc06
parent590d00257009d947f29dda6040f95be4c10d84f6 (diff)
Fix send method when not using callback func
-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();
}