Skip to content

Commit

Permalink
fix: Fix avoiding a log message when disconnected. (#814)
Browse files Browse the repository at this point in the history
This makes the code match the comment above (and the version of the code
prior to the latest change).
  • Loading branch information
bgrozev committed Oct 4, 2021
1 parent d714d83 commit 0aff9aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void leave()
| MultiUserChatException.MucNotJoinedException e)
{
// when the connection is not connected and we get NotConnectedException, this is expected (skip log)
if (!(connection.isConnected() && e instanceof NotConnectedException))
if (connection.isConnected() || !(e instanceof NotConnectedException))
{
logger.error("Failed to properly leave " + muc, e);
}
Expand Down

0 comments on commit 0aff9aa

Please sign in to comment.