har we go
This commit is contained in:
@@ -105,11 +105,14 @@ class Reactor(threading.Thread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
log("Reactor.run: start")
|
log("Reactor.run: start")
|
||||||
while True:
|
while True:
|
||||||
got = self.inq.get()
|
text = self.inq.get()
|
||||||
if not got:
|
if text is None:
|
||||||
break
|
break
|
||||||
print(got)
|
self.handle(text)
|
||||||
log("Reactor.run: stop")
|
log("Reactor.run: stop")
|
||||||
|
|
||||||
|
def handle(self, text):
|
||||||
|
print(text)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user