fix thread 锁死的bug