diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-31 06:08:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-31 06:08:48 +0000 |
commit | 85c6d25e5ba735654da0df0f04cb0dc723a7d9d2 (patch) | |
tree | 12ac7c362ddb8d595e7dd55516d03c72c7751f71 /contrib/ExerciseServer.py | |
parent | 1bf1f44e747edd7309646280bb860f03c5e80665 (diff) | |
download | tor-85c6d25e5ba735654da0df0f04cb0dc723a7d9d2.tar.gz tor-85c6d25e5ba735654da0df0f04cb0dc723a7d9d2.zip |
fix crash
svn:r3927
Diffstat (limited to 'contrib/ExerciseServer.py')
-rw-r--r-- | contrib/ExerciseServer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ExerciseServer.py b/contrib/ExerciseServer.py index 9657d53473..8d3e2f2249 100644 --- a/contrib/ExerciseServer.py +++ b/contrib/ExerciseServer.py @@ -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 |