Releasing and handling connection loss works in user plugin

This commit is contained in:
Olek Bojda 2018-09-19 21:59:30 +02:00
parent ade1e31758
commit c925f4e093

View File

@ -205,6 +205,9 @@ class QtWrapper:
# self.widget.logsBrowser.append(str(self.logger_counter) + '\t[ERROR]\t' + error_text) # self.widget.logsBrowser.append(str(self.logger_counter) + '\t[ERROR]\t' + error_text)
def connection_to_robot_lost(self,lost_robot_id): def connection_to_robot_lost(self,lost_robot_id):
self.clear_robot_info()
self.disconnect_signals()
self.connect_signals()
self.log_info('Utrata polaczenia z robotem PIONIER' + str(lost_robot_id)) self.log_info('Utrata polaczenia z robotem PIONIER' + str(lost_robot_id))