Revision 1c2d3c8c py/scenic/application.py

b/py/scenic/application.py
224 224
        """
225 225
        print("The application is shutting down.")
226 226
        # TODO: stop streamers
227
        self.save_configuration()
227 228
        if self.client.is_connected():
228 229
            if not self.got_bye:
229 230
                self.send_bye()
......
231 232
            self.disconnect_client()
232 233
        print('stopping server')
233 234
        self.server.close()
235
        
234 236
    # ------------------------- session occuring -------------
235 237
    def has_session(self):
236 238
        """
......
442 444
        else:
443 445
            # UPDATE when initiating session
444 446
            self.gui._gather_configuration()
447
            self.save_configuration()
445 448
        msg = {
446 449
            "msg":"INVITE",
447 450
            "protocol": self.protocol_version,
......
471 474
    def send_accept(self, addr):
472 475
        # UPDATE config once we accept the invitie
473 476
        self.gui._gather_configuration()
477
        self.save_configuration()
474 478
        self.allocate_ports()
475 479
        msg = {
476 480
            "msg":"ACCEPT", 

Also available in: Unified diff