Exit and log error if the room was not found.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 9 Jul 2020 21:30:24 +0000 (23:30 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 9 Jul 2020 21:30:24 +0000 (23:30 +0200)
lagarde.py

index f984354f3fdd7ceb9aa5ea5b7ef9bf2fede2f76f..1994893fc2f81c9aa26587fa2912eedf1459ca36 100755 (executable)
@@ -192,6 +192,9 @@ class Lagarde:
                 value_json = json.loads(msg_value)
                 log.info(f'Got ICE candidate: {value_json}')
                 self.received_ice_candidates.append(value_json)
+            elif msg_type == 'roomNotFound':
+                log.error(f'The room was not found: {uri}')
+                return
             elif msg_type == 'roomClosed':
                 log.info(f'Oh noes, the room went away (session {self.session_id})!')
                 self.session_id = None