mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2024-10-01 01:15:36 -04:00
Fixed 100% SPU isage in idle loop
This commit is contained in:
parent
8954793d11
commit
e59b5837e4
@ -18,6 +18,7 @@ from config_init import initialize_config, get_interface
|
||||
from db_operations import initialize_database
|
||||
from message_processing import on_receive
|
||||
from pubsub import pub
|
||||
import time
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
||||
@ -51,7 +52,8 @@ def main():
|
||||
|
||||
try:
|
||||
while True:
|
||||
pass
|
||||
time.sleep(1)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("Shutting down the server...")
|
||||
interface.close()
|
||||
|
Loading…
Reference in New Issue
Block a user