修正关闭房间时发生的死锁

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>