Close not needed
This commit is contained in:
parent
02b222e3df
commit
1fff49dc22
|
@ -44,7 +44,6 @@ def send_tor_signal(signal: Signal, confloc='./misc/tor/control.conf') -> bool:
|
|||
for line in conf:
|
||||
pass
|
||||
secret = line
|
||||
conf.close()
|
||||
with Controller.from_port(port=9051) as c:
|
||||
authenticate_password(c, password=secret)
|
||||
c.signal(signal)
|
||||
|
|
Loading…
Reference in New Issue
Block a user