def stop_server(self): """ Stop the onionshare server. """ if self.server_status.status != self.server_status.STATUS_STOPPED: web.stop(self.app.port) self.app.cleanup() self.filesize_warning.hide() self.stop_server_finished.emit()
def stop_server(self): """ Stop the onionshare server. """ if self.server_status.status == self.server_status.STATUS_STARTED: web.stop(self.app.port) self.app.cleanup() self.filesize_warning.hide() self.stop_server_finished.emit()
def stop_server(self): """ Stop the onionshare server. """ if self.server_status.status != self.server_status.STATUS_STOPPED: web.stop(self.app.port) self.app.cleanup() self.filesize_warning.hide() self.options.set_advanced_enabled(True) self.stop_server_finished.emit()
def stop_server(self): """ Stop the onionshare server. """ common.log('OnionShareGui', 'stop_server') if self.server_status.status != self.server_status.STATUS_STOPPED: web.stop(self.app.port) self.app.cleanup() self.filesize_warning.hide() self.stop_server_finished.emit() self.set_server_active(False)
def stop_server(self): """ Stop the onionshare server. """ common.log('OnionShareGui', 'stop_server') if self.server_status.status != self.server_status.STATUS_STOPPED: try: web.stop(self.app.port) except: # Probably we had no port to begin with (Onion service didn't start) pass self.app.cleanup() self.filesize_warning.hide() self.stop_server_finished.emit() self.set_server_active(False)
def stop_server(self): """ Stop the onionshare server. """ common.log('OnionShareGui', 'stop_server') if self.server_status.status != self.server_status.STATUS_STOPPED: try: web.stop(self.app.port) except: # Probably we had no port to begin with (Onion service didn't start) pass self.app.cleanup() # Remove ephemeral service, but don't disconnect from Tor self.onion.cleanup(stop_tor=False) self.filesize_warning.hide() self.persistent_url_label.hide() self.stop_server_finished.emit() self.set_server_active(False)
def stop_server(self): """ Stop the onionshare server. """ common.log('OnionShareGui', 'stop_server') if self.server_status.status != self.server_status.STATUS_STOPPED: try: web.stop(self.app.port) except: # Probably we had no port to begin with (Onion service didn't start) pass self.app.cleanup() # Remove ephemeral service, but don't disconnect from Tor self.onion.cleanup(stop_tor=False) self.filesize_warning.hide() self.downloads_in_progress = 0 self.downloads_completed = 0 self.update_downloads_in_progress(0) self.file_selection.file_list.adjustSize() self.set_server_active(False) self.stop_server_finished.emit()
def stop_server(self): if self.server_status.status == self.server_status.STATUS_STARTED: web.stop(self.app.port) self.app.cleanup() self.filesize_warning.hide() self.stop_server_finished.emit()
def stop_server(self): if self.server_status.status == self.server_status.STATUS_STARTED: web.stop(self.app.port) self.app.cleanup() self.stop_server_finished.emit()