Fixes a bug which caused a crash if you've tried to accept a connection which wasn't intercepted.

This commit is contained in:
Thomas Roth 2010-02-24 23:32:56 +01:00
parent 79d2abb23a
commit 0fc864c419
2 changed files with 6 additions and 6 deletions

View File

@ -540,11 +540,12 @@ class Flow:
self.intercepting = True
def accept_intercept(self):
if not self.request.acked:
self.request.ack()
elif self.response and not self.response.acked:
self.response.ack()
self.intercepting = False
if self.request:
if not self.request.acked:
self.request.ack()
elif self.response and not self.response.acked:
self.response.ack()
self.intercepting = False
class State:

1
todo
View File

@ -15,7 +15,6 @@ Future:
Bugs:
- Exception handling for regular expression compiler in filt.py.
- Fix crash cause on undefined request in libmproxy/console.py:543
- Fix crash on illegal regular expression on libmproxy/filt.py:76
- In some circumstances, long URLs in list view are line-broken oddly.
- Termination sometimes hangs.