mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fix: #9466, don't call leaveRoom in maintenance mode
This commit is contained in:
@@ -231,7 +231,7 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
app.leaveCurrentRoom = function () {
|
||||
if (!socket) {
|
||||
if (!socket || config.maintenanceMode) {
|
||||
return;
|
||||
}
|
||||
var previousRoom = app.currentRoom;
|
||||
|
||||
Reference in New Issue
Block a user