Fixed a crash

This commit is contained in:
WolverinDEV
2020-01-27 13:02:22 +01:00
parent aaea9b9339
commit 8acd2396d3
8 changed files with 53 additions and 15 deletions
+3 -1
View File
@@ -685,6 +685,7 @@ void ConnectedClient::sendChannelList(bool lock_channel_tree) {
*/
/*
std::deque<std::shared_ptr<ViewEntry>> entry_channels{pop_view_entry(channels, this->currentChannel->channelId())};
while(entry_channels.front()) entry_channels.push_front(pop_view_entry(channels, entry_channels.front()->parentId()));
entry_channels.pop_front();
@@ -693,8 +694,9 @@ void ConnectedClient::sendChannelList(bool lock_channel_tree) {
send_channels(this, entry_channels.begin(), entry_channels.end(), true);
this->notifyClientEnterView(_this.lock(), nullptr, "", this->currentChannel, ViewReasonId::VREASON_SYSTEM, nullptr, false); //Notify self after path is send
*/
send_channels(this, channels.begin(), channels.end(), false);
this->notifyClientEnterView(_this.lock(), nullptr, "", this->currentChannel, ViewReasonId::VREASON_SYSTEM, nullptr, false); //Notify self after path is send
this->sendCommand(Command("channellistfinished"));
}