Exit if no server found
This commit is contained in:
parent
329a7692dc
commit
88f0b4119c
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import struct
|
import struct
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
import pvporcupine
|
import pvporcupine
|
||||||
@ -47,9 +48,8 @@ def record():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if config_utils.get_in_config('SERVER_IP') is None:
|
if server_utils.get_server_ip() is None:
|
||||||
print("No server IP specified in config, looking trough the entire network... (might take a few seconds)")
|
sys.exit(1)
|
||||||
server_utils.find_server_on_network()
|
|
||||||
|
|
||||||
thread = threading.Thread(target=wake_word_listening).start()
|
thread = threading.Thread(target=wake_word_listening).start()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user