Skip to content

Commit 0aff9aa

Browse files
authored
fix: Fix avoiding a log message when disconnected. (#814)
This makes the code match the comment above (and the version of the code prior to the latest change).
1 parent d714d83 commit 0aff9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jitsi/impl/protocol/xmpp/ChatRoomImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void leave()
276276
| MultiUserChatException.MucNotJoinedException e)
277277
{
278278
// when the connection is not connected and we get NotConnectedException, this is expected (skip log)
279-
if (!(connection.isConnected() && e instanceof NotConnectedException))
279+
if (connection.isConnected() || !(e instanceof NotConnectedException))
280280
{
281281
logger.error("Failed to properly leave " + muc, e);
282282
}

0 commit comments

Comments
 (0)