use thread instead of multiprocessing in window system
This commit is contained in:
@@ -958,6 +958,10 @@ class WebWeixin(object):
|
||||
print '[*] 自动回复模式 ... 关闭'
|
||||
logging.debug('[*] 自动回复模式 ... 关闭')
|
||||
|
||||
if sys.platform.startswith('win'):
|
||||
import thread
|
||||
thread.start_new_thread(self.listenMsgMode())
|
||||
else:
|
||||
listenProcess = multiprocessing.Process(target=self.listenMsgMode)
|
||||
listenProcess.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user