Beispiel #1
0
 def connectionLost(self, reason):
     if self.tunfd >= 0:
         try:
             os.close(self.tunfd)
         except OSError as _:
             logger.error("cannot close tunfd")
     FileDescriptor.connectionLost(self, reason)
Beispiel #2
0
 def connectionLost(self, reason):
     if self.tunfd >= 0:
         try:
             os.close(self.tunfd)
         except OSError as _:
             logger.error("cannot close tunfd")
     FileDescriptor.connectionLost(self, reason)
Beispiel #3
0
 def connectionLost(self, reason):
     """
     The connection was lost.
     """
     FileDescriptor.connectionLost(self, reason)
     self.protocol.connectionLost(reason)
     self.connected = 0
     if self._fd is not None:
         os.close(self._fd)
Beispiel #4
0
 def connectionLost(self, reason):
     """
     Release the inotify file descriptor and do the necessary cleanup
     """
     FileDescriptor.connectionLost(self, reason)
     if self._fd >= 0:
         try:
             os.close(self._fd)
         except OSError as e:
             log.err(e, "Couldn't close INotify file descriptor.")
Beispiel #5
0
 def connectionLost(self, reason):
     """
     Release the inotify file descriptor and do the necessary cleanup
     """
     FileDescriptor.connectionLost(self, reason)
     if self._fd >= 0:
         try:
             os.close(self._fd)
         except OSError, e:
             log.err(e, "Couldn't close INotify file descriptor.")
Beispiel #6
0
 def connectionLost(self, reason):
     FileDescriptor.connectionLost(self, reason)
     self.protocol.connectionLost(reason)
Beispiel #7
0
 def connectionLost(self, reason):
     FileDescriptor.connectionLost(self, reason)
     self.__device.close()
     self.protocol.connectionLost(reason)
Beispiel #8
0
 def connectionLost(self, reason):
     FileDescriptor.connectionLost(self, reason)
     self.__device.close()
     self.protocol.connectionLost(reason)