Skip to content
Snippets Groups Projects
Commit e5b1bfc9 authored by plw1g21's avatar plw1g21
Browse files

Quick refactoring

parent 287e537c
No related branches found
No related tags found
No related merge requests found
......@@ -64,4 +64,14 @@ class ConnectionManager:
def stop(self):
"""Stops the connection manager."""
#@TODO: Implement stoppage gracefully. Right now
self.stop_event.set()
if __name__ == "__main__":
ConnectionManager(None).start()
while True:
time.sleep(1)
user_input = input("Type 'exit' to stop: ")
if user_input == "exit":
break
ConnectionManager(None).stop()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment