Commit 0b9d52bc authored by Damian Johnson's avatar Damian Johnson
Browse files

fix: fetching relay address could ignored default

The getRelayAddress function would ignore its default argument if tor is shut
down, causing it to return None and make arm crash. This is probably a timing
issue which is why it went undiscovered so long.
parent b1a5794c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1546,7 +1546,7 @@ class Controller(TorCtl.PostEventListener):
    
    self.connLock.acquire()
    
    result = None
    result = default
    if self.isAlive():
      # query the address if it isn't yet cached
      if not relayFingerprint in self._addressLookupCache: