diff --git a/app/src/Host.js b/app/src/Host.js index a6bd0a56..f660028e 100644 --- a/app/src/Host.js +++ b/app/src/Host.js @@ -70,7 +70,9 @@ module.exports = class Host { * @returns boolean */ deleteIP(ip) { - this.setRoomDeactivate(); + if (this.isAuthorizedIP(ip)) { + this.setRoomDeactivate(); + } return this.authorizedIPs.delete(ip); } };