state.resetNetworkProtocolAvailability() is obsolete

v0.6
Dmitri Bogomolov 3 years ago
parent 18392017c6
commit df66277e2d
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
  1. 3
      src/bitmessageqt/settings.py
  2. 11
      src/state.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())

@ -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

Loading…
Cancel
Save