aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-01 15:47:50 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-01 15:47:54 +0200
commitbcb4458ae65545d67c047037082dea0e7701f749 (patch)
treeafe9cda1311646afec24cb9750c95127f9b5586c /src
parent78c737a0990b3cd2139b0fcca60355ce9f9d4b11 (diff)
Fix waiting to join? test
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
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", [&currentUserKeyPair, &database, &localNodeUsers, &channelMessageMutex, &waitingToJoin](const vector<string> &args)
+ Command::add("jc", [&currentUserKeyPair, &database, &localNodeUsers, &channelMessageMutex, &waitingToJoin, &waitingToJoinChannels](const vector<string> &args)
{
lock_guard<recursive_mutex> 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,