コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
ファイル: __init__.py プロジェクト: u451f/onionshare
 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()
コード例 #4
0
    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)
コード例 #5
0
ファイル: onionshare_gui.py プロジェクト: sjnhnp/onionshare
    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)
コード例 #6
0
    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)
コード例 #7
0
    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)
コード例 #8
0
ファイル: onionshare_gui.py プロジェクト: u451f/onionshare
    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()
コード例 #9
0
ファイル: onionshare_gui.py プロジェクト: wlaotou/onionshare
    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()
コード例 #10
0
 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()
コード例 #11
0
ファイル: onionshare_gui.py プロジェクト: vecna/onionshare
 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()