use thread instead of multiprocessing in window system

This commit is contained in:
苏世龙
2016-10-21 16:06:16 +08:00
parent 77e244672a
commit 089c07689f
+4
View File
@@ -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()