aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,