def closeTransport(self): if self._lport is not None: deferred = self._lport.stopListening() if deferred: deferred.addCallback(lambda x: None) DgramTwistedTransport.closeTransport(self)
def closeTransport(self): d = self._lport.stopListening() d and d.addCallback(lambda x: None) DgramTwistedTransport.closeTransport(self)