Skip to content

Commit

Permalink
CashFusion: Ensure tor_port_good is defined in plugin
Browse files Browse the repository at this point in the history
Fixes #1955.  This attribute isn't guaranteed defined, which can cause
problems such as a crash reporter appearing for the plugin.

This commit fixes that.
  • Loading branch information
cculianu committed Aug 12, 2020
1 parent ef7d53a commit 654b052
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/fusion/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) # gives us self.config
self.fusions = weakref.WeakKeyDictionary()
# Do an initial check on the tor port
self.tor_port_good = None
t = threading.Thread(name = 'Fusion-scan_torport_initial', target = self.scan_torport)
t.start()
self.scan_torport_thread = weakref.ref(t)
Expand Down

0 comments on commit 654b052

Please sign in to comment.