diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-06-09 19:18:41 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-06-09 19:18:44 +0200 |
commit | 4b0ee7c887deb1d385497cff694c2098ce4e4ba6 (patch) | |
tree | 94aa2c931fe24e47c5ce69a2b9132477b92ce460 /src/BootstrapConnection.cpp | |
parent | 23c234db3e9fcbe07b851529789f3174b6efa673 (diff) |
Fix send not working, allow sending 0 bytes
Diffstat (limited to 'src/BootstrapConnection.cpp')
-rw-r--r-- | src/BootstrapConnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index fffb332..361f13a 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -91,7 +91,7 @@ namespace sibs throw PubsubKeyAlreadyListeningException(""); listenCallbackFuncs[pubsubKey] = callbackFunc; } - connections.send(serverPeer, std::make_shared<std::vector<u8>>(pubsubKey.data.data(), pubsubKey.data.data()), + connections.send(serverPeer, std::make_shared<std::vector<u8>>(pubsubKey.data.begin(), pubsubKey.data.end()), [](PubSubResult result, const std::string &resultStr) { Log::debug("BootstrapConnection::listen: PubSubResult: %d, result string: %s", result, resultStr.c_str()); |