(self)
Cleans up the process
Cleans up the process
Cleans up the process
def stop(self):
        """
        Cleans up the process
        """
        if self._log:
            self._log.close()
            self._log = None
        #If its dead dont worry
        if self.process is None:
            return

        #Tell the Server to properly die in case
        try:
            if self.process:
                self.process.kill()
                self.process.wait()
        except WindowsError:
            # kill may not be available under windows environment
            pass
def stop ( self ) : if self . _log : self . _log . close ( ) self . _log = None #If its dead dont worry if self . process is None : return #Tell the Server to properly die in case try : if self . process : self . process . kill ( ) self . process . wait ( ) except WindowsError : # kill may not be available under windows environment pass