fix: #9466, don't call leaveRoom in maintenance mode

This commit is contained in:
Barış Soner Uşaklı
2021-04-07 14:10:15 -04:00
parent a0dd90804c
commit f32ea1737a
2 changed files with 2 additions and 1 deletions

View File

@@ -231,7 +231,7 @@ app.cacheBuster = null;
};
app.leaveCurrentRoom = function () {
if (!socket) {
if (!socket || config.maintenanceMode) {
return;
}
var previousRoom = app.currentRoom;