From bcb4458ae65545d67c047037082dea0e7701f749 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 1 May 2018 15:47:50 +0200 Subject: Fix waiting to join? test --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index bf74d23..eb5683f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -362,7 +362,7 @@ int main(int argc, char **argv) } }); - Command::add("jc", [¤tUserKeyPair, &database, &localNodeUsers, &channelMessageMutex, &waitingToJoin](const vector &args) + Command::add("jc", [¤tUserKeyPair, &database, &localNodeUsers, &channelMessageMutex, &waitingToJoin, &waitingToJoinChannels](const vector &args) { lock_guard lock(channelMessageMutex); if(args.size() != 1) @@ -394,6 +394,7 @@ int main(int argc, char **argv) } database.seed(databaseNode); + waitingToJoinChannels.push_back(databaseNode); waitingToJoin = true; // TODO: Add the channel to join to a pending join list in a file and remove from it when we have joined the channel. // The reason for doing that is so if we crash or lose internet connection before we have got `create node` request from remote peers, -- cgit v1.2.3