From df66277e2d19e835ef6f9f0adb8a4e3a9d616769 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Tue, 30 Jul 2019 11:16:48 +0300 Subject: [PATCH] state.resetNetworkProtocolAvailability() is obsolete --- src/bitmessageqt/settings.py | 3 +-- src/state.py | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/bitmessageqt/settings.py b/src/bitmessageqt/settings.py index dced52ff..4273257e 100644 --- a/src/bitmessageqt/settings.py +++ b/src/bitmessageqt/settings.py @@ -315,8 +315,7 @@ class SettingsDialog(QtGui.QDialog): ): self.net_restart_needed = True self.parent.statusbar.clearMessage() - # just in case we changed something in the network connectivity - state.resetNetworkProtocolAvailability() + self.config.set( 'bitmessagesettings', 'socksproxytype', str(self.comboBoxProxyType.currentText()) diff --git a/src/state.py b/src/state.py index 2cbc3a7c..3e051edf 100644 --- a/src/state.py +++ b/src/state.py @@ -9,9 +9,6 @@ extPort = None # for Tor hidden service socksIP = None -# Network protocols availability, initialised below -networkProtocolAvailability = None - appdata = '' # holds the location of the application data storage directory # Set to 1 by the doCleanShutdown function. @@ -54,14 +51,6 @@ discoveredPeers = {} Peer = collections.namedtuple('Peer', ['host', 'port']) - -def resetNetworkProtocolAvailability(): - global networkProtocolAvailability - networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None} - - -resetNetworkProtocolAvailability() - dandelion = 0 testmode = False