aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}