Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WebUI(libs.threadmanager.Thread):
- def __init__(self):
- libs.threadmanager.Thread.__init__(self)
- globalVars["server"] = HTTPServer(('', 7777), MyHandler)
- def run(self):
- while globalVars["running"] == True and not self._stop.isSet():
- try:
- globalVars["server"].handle_request()
- except TimoutException:
- pass
Add Comment
Please, Sign In to add comment