Merge pull request #13 from shaundaley39/BugFixDHTChatSignedMsg

bug fix: in DHTChat tool, signed message should emit entire line
This commit is contained in:
Adrien Béraud committed 2015-08-19 13:19:58 -04:00
commit 7e393e7f1a
1 file changed
+2 -1
+2 -1
View File
@@ -116,7 +116,8 @@ main(int argc, char **argv)
std::cout << "Message publishing failed !" << std::endl;
});
} else {
dht.putSigned(room, dht::ImMessage(std::move(op)), [](bool ok) {
std::getline(iss, line);
dht.putSigned(room, dht::ImMessage(std::move(line)), [](bool ok) {
//dht.cancelPut(room, id);
if (not ok)
std::cout << "Message publishing failed !" << std::endl;