daemon/core/session.py
def disconnect(self, handler):
        ''' Disconnect a request handler from this session. Shutdown this
            session if there is no running emulation.
        '''
        with self._handlerslock:
            try:
                self._handlers.remove(handler)
            except KeyError:
                raise ValueError, \
                    "Handler %s not associated with this session" % handler
            num_handlers = len(self._handlers)
        if num_handlers == 0:
            # shut down this session unless we are instantiating, running,
            # or collecting final data
            if self.getstate() < coreapi.CORE_EVENT_INSTANTIATION_STATE or \
                    self.getstate() > coreapi.CORE_EVENT_DATACOLLECT_STATE:
                self.shutdown()
 Disconnect a request handler from this session. Shutdown this
            session if there is no running emulation.
        
Disconnect a request handler from this session. Shutdown this
session if there is no running emulation.
Disconnect a request handler from this session . Shutdown this session if there is no running emulation .
def disconnect(self, handler):
        with self._handlerslock:
            try:
                self._handlers.remove(handler)
            except KeyError:
                raise ValueError, \
                    "Handler %s not associated with this session" % handler
            num_handlers = len(self._handlers)
        if num_handlers == 0:
            if self.getstate() < coreapi.CORE_EVENT_INSTANTIATION_STATE or \
                    self.getstate() > coreapi.CORE_EVENT_DATACOLLECT_STATE:
                self.shutdown()
def disconnect ( self , handler ) : with self . _handlerslock : try : self . _handlers . remove ( handler ) except KeyError : raise ValueError , "Handler %s not associated with this session" % handler num_handlers = len ( self . _handlers ) if num_handlers == 0 : if self . getstate ( ) < coreapi . CORE_EVENT_INSTANTIATION_STATE or self . getstate ( ) > coreapi . CORE_EVENT_DATACOLLECT_STATE : self . shutdown ( )
Disconnect a request handler from this session.
Disconnect a request handler from this session .
''' Disconnect a request handler from this session. Shutdown this
            session if there is no running emulation.
        ''' # shut down this session unless we are instantiating, running, # or collecting final data
self
handler