mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
fix crash
svn:r3927
This commit is contained in:
parent
1bf1f44e74
commit
85c6d25e5b
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ def handleEvent(s, body, circs, streamsByNonce, streamsByIdent):
|
|||
elif status in (TorControl.STREAM_STATUS.CLOSED,
|
||||
TorControl.STREAM_STATUS.FAILED):
|
||||
circid, (host,url) = streamsByIdent[ident]
|
||||
del circs[circid]
|
||||
if circs.has_key(circid):
|
||||
del circs[circid]
|
||||
del streamsByIdent[ident]
|
||||
elif event == TorControl.EVENT_TYPE.CIRCSTATUS:
|
||||
status, ident, path = args
|
||||
|
|
Loading…
Add table
Reference in a new issue