From 7da5fcfa2c2f630e62ea895e0732259fab51dab0 Mon Sep 17 00:00:00 2001 From: notify Date: Mon, 9 May 2022 23:37:44 +0800 Subject: [PATCH] fix: quit a started room block main thread --- src/server/room.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/room.cpp b/src/server/room.cpp index 34592943..c741bfe5 100644 --- a/src/server/room.cpp +++ b/src/server/room.cpp @@ -32,6 +32,7 @@ Room::~Room() { // TODO if (isRunning()) { + terminate(); wait(); } lua_close(L);