Commit 6ea32cc2 authored by qhoangxuan's avatar qhoangxuan

Switch from _thread to threading

parent fb769c42
......@@ -17,7 +17,7 @@
import logging
import re
import _thread
import threading
import zoe_api.exceptions
import zoe_api.master_api
......@@ -80,7 +80,7 @@ class APIEndpoint:
proxy = zoe_api.proxy.apache.ApacheProxy(self, application_description)
else:
proxy = zoe_api.proxy.nginx.NginxProxy(self, application_description)
_thread.start_new_thread(proxy.proxify,(uid, role, new_id))
threading.Thread(target=proxy.proxify,args=(uid, role, new_id)).start()
return new_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment