From edca72fb361c59c9d833ddd07c34339e063b54b5 Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 20 May 2023 08:26:28 +0200 Subject: [PATCH] bug #1990 --- src/server/world/atlas.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/world/atlas.js b/src/server/world/atlas.js index cfb32d91..dcd1389f 100644 --- a/src/server/world/atlas.js +++ b/src/server/world/atlas.js @@ -87,8 +87,11 @@ module.exports = { objects.removeObject(obj); const thread = getThreadFromId(obj.zoneId); - if (!thread) + if (!thread) { + callback(); + return; + } if (thread.instanced && (await gePlayerCountInThread(thread)) === 1) { this.removeObjectFromInstancedZone(thread, playerId, callback);