Skip to content

Commit

Permalink
Fixed a deadlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyjf committed Oct 20, 2010
1 parent a641866 commit 4f1fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,8 +1603,8 @@ void ClientImpl::joinChannel(ChannelPtr channel) {
}

void ClientImpl::partChannel(ChannelPtr channel) {
lock_guard<shared_mutex> lock(m_channelMutex);
channel->part(shared_from_this());
lock_guard<shared_mutex> lock(m_channelMutex);
m_channels.erase(channel);
}

Expand Down

0 comments on commit 4f1fe14

Please sign in to comment.