Skip to content

Commit ed8e948

Browse files
committed
Bug fix: No server crash more in case if API connect failed at server start
1 parent 832df48 commit ed8e948

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CaSSAndRA/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
#Version:0.218.0 Added Api message if sending command fails
3+
#Version:0.218.1 Bug fix: No server crash more in case if API connect failed at server start
44
# package imports
55
import os
66
import sys

CaSSAndRA/src/backend/data/appdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
logger = logging.getLogger(__name__)
33

44

5-
version = '0.218.0'
5+
version = '0.218.1'
66

77
# global ui messages
88
cmdTransmissionFailed: bool = False

CaSSAndRA/src/backend/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,10 @@ def _setupApiConnection(self) -> None:
351351
break
352352
if mqttapi.client.connection_flag:
353353
mqttapi.client.publish(mqttapi.mqtt_mower_name+'/status', 'boot')
354-
self.api_thread = threading.Thread(target=self._runApi, name='api')
355-
self.api_cmd_thread = threading.Thread(target=self._runApiCmd, name='api cmd')
356-
self.api_thread.daemon = True
357-
self.api_cmd_thread.daemon = True
354+
self.api_thread = threading.Thread(target=self._runApi, name='api')
355+
self.api_cmd_thread = threading.Thread(target=self._runApiCmd, name='api cmd')
356+
self.api_thread.daemon = True
357+
self.api_cmd_thread.daemon = True
358358

359359
def _setupMessageServiceConnection(self) -> None:
360360
if cfgdata.commcfg.message_service == 'Telegram':

0 commit comments

Comments
 (0)