Exemple #1
0
 def stop(self):
     if not self.started:
         return
     self.started = False
     self.active = False
     notification_center = NotificationCenter()
     notification_center.add_observer(self, sender=self)
     notification_center.post_notification(self.__class__.__name__ +
                                           'WillEnd',
                                           sender=self)
     notification_center.remove_observer(self,
                                         name='CFGSettingsObjectDidChange',
                                         sender=self.account)
     notification_center.remove_observer(self,
                                         name='CFGSettingsObjectDidChange',
                                         sender=SIPSimpleSettings())
     notification_center.remove_observer(self,
                                         name='NetworkConditionsDidChange')
     command = Command('terminate')
     self._command_channel.send(command)
     command.wait()
     self._command_proc = None
     notification_center.post_notification(self.__class__.__name__ +
                                           'DidDeactivate',
                                           sender=self)
     notification_center.post_notification(self.__class__.__name__ +
                                           'DidEnd',
                                           sender=self)
     notification_center.remove_observer(self, sender=self)
Exemple #2
0
    def stop(self):
        # deactivate
        command = Command('stop')
        self._command_channel.send(command)
        command.wait()
        self._stopped = True

        notification_center = NotificationCenter()
        notification_center.remove_observer(self, name='SystemIPAddressDidChange')
        notification_center.remove_observer(self, name='SystemDidWakeUpFromSleep')
        self._select_proc.kill()
        self._command_channel.send_exception(api.GreenletExit)
    def stop(self):
        # deactivate
        command = Command('stop')
        self._command_channel.send(command)
        command.wait()
        self._stopped = True

        notification_center = NotificationCenter()
        notification_center.remove_observer(self, name='SystemIPAddressDidChange')
        notification_center.remove_observer(self, name='SystemDidWakeUpFromSleep')
        self._select_proc.kill()
        self._command_channel.send_exception(api.GreenletExit)
 def stop(self):
     if not self.started:
         return
     self.started = False
     self.active = False
     notification_center = NotificationCenter()
     notification_center.remove_observer(self, name='CFGSettingsObjectDidChange', sender=self.account)
     notification_center.remove_observer(self, name='CFGSettingsObjectDidChange', sender=SIPSimpleSettings())
     notification_center.remove_observer(self, name='NetworkConditionsDidChange')
     command = Command('terminate')
     self._command_channel.send(command)
     command.wait()
     self._command_proc = None
 def stop(self):
     if not self.started:
         return
     self.started = False
     self.active = False
     notification_center = NotificationCenter()
     notification_center.add_observer(self, sender=self)
     notification_center.post_notification(self.__class__.__name__ + 'WillEnd', sender=self)
     notification_center.remove_observer(self, name='NetworkConditionsDidChange')
     command = Command('terminate')
     self._command_channel.send(command)
     command.wait()
     self._command_proc = None
     notification_center.post_notification(self.__class__.__name__ + 'DidDeactivate', sender=self)
     notification_center.post_notification(self.__class__.__name__ + 'DidEnd', sender=self)
     notification_center.remove_observer(self, sender=self)
Exemple #6
0
 def deactivate(self):
     command = Command('stop')
     self._command_channel.send(command)
     command.wait()
     self._started = False
Exemple #7
0
 def _deactivate(self):
     command = Command('stop')
     self._command_channel.send(command)
     command.wait()
     self._stopped = True
Exemple #8
0
 def _deactivate(self):
     command = Command('stop')
     self._command_channel.send(command)
     command.wait()
     self._stopped = True
Exemple #9
0
 def _unsubscribe_sip(self):
     command = Command("unsubscribe")
     self._command_channel.send(command)
     command.wait()
     self._command_proc.kill()
     self._command_proc = None
 def deactivate(self):
     command = Command('stop')
     self._command_channel.send(command)
     command.wait()
     self._started = False
Exemple #11
0
 def _unsubscribe_sip(self):
     command = Command('unsubscribe')
     self._command_channel.send(command)
     command.wait()
     self._command_proc.kill()
     self._command_proc = None