state.resetNetworkProtocolAvailability() is obsolete
This commit is contained in:
parent
18392017c6
commit
df66277e2d
|
@ -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())
|
||||
|
|
11
src/state.py
11
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
|
||||
|
|
Reference in New Issue
Block a user