"handle" roomClosed message
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Jul 2020 18:05:21 +0000 (20:05 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 9 Jul 2020 18:05:21 +0000 (20:05 +0200)
lagarde.py

index bc7a99b4c2c469db4348b74b023e514858a06bd5..0603bbbe11f586c0c365d85a80300e8dd4451113 100755 (executable)
@@ -192,6 +192,9 @@ class Lagarde:
                     value_json = json.loads(msg_value)
                     log.info(f'ICE: {value_json}')
                     self.received_ice_candidates.append(value_json)
+                elif msg_type == 'roomClosed':
+                    log.info('Oh noes, the room went away!')
+                    # and here we should clean up
                 else:
                     log.error(f'Unknown message type {msg_type}')