fix: quit a started room block main thread
This commit is contained in:
parent
60b9839fd7
commit
7da5fcfa2c
|
@ -32,6 +32,7 @@ Room::~Room()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
if (isRunning()) {
|
if (isRunning()) {
|
||||||
|
terminate();
|
||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
lua_close(L);
|
lua_close(L);
|
||||||
|
|
Loading…
Reference in New Issue