removed unnecessary loop from main file

This commit is contained in:
ori agranat
2019-08-16 15:00:28 +03:00
parent 81cee9cf2b
commit 5bea7f8d5c
3 changed files with 7 additions and 4 deletions

View File

@@ -65,7 +65,11 @@ of you can auto serve the ui by
```
npm run serve
```
## Hardware
this is important when choosing your sbc it is more important to have a good usb controller that a good cpu
on the odroid xu4 which is very fast i have got many bottlenecks from the usb controller and many times making the program crach
#### networking
it is very important to install Bonjour
## docs

View File

@@ -31,6 +31,7 @@ def run():
port += 1
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
settings_manager = SettingsManager()
@@ -38,5 +39,3 @@ if __name__ == "__main__":
server_thread = threading.Thread(target=run_server)
server_thread.start()
while True:
pass

View File

@@ -111,7 +111,7 @@ class CameraHandler:
#publishing to websocket at slower interval
asyncio.set_event_loop(asyncio.new_event_loop())
while True:
time.sleep(0.05)
time.sleep(0.1)
if self.settings_manager.general_settings['curr_camera'] == self.cam_name:
try:
send_all_async({