Commit d736e92b by Owo Sugiana

inherite is_loop

1 parent e638f9f0
......@@ -129,6 +129,7 @@ class CommonConnection(Log):
self.log_info('ISO8583 to raw {}'.format([raw]))
def process(self, raw):
self.log_info('PROSES THREAD')
parser = Parser(self, raw)
thread = create_thread(parser.run)
parser_threads.append((parser, thread))
......@@ -164,6 +165,9 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
self.running = False
conn_mgr.add(self)
BaseRequestHandler.handle(self)
def is_loop(self):
sleep(0.1)
return self.running
def on_receive_raw(self, raw):
self.log_receive_raw(raw)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!