aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorNaveen Pai <naveen.pai@bloomreach.com>2016-11-04 02:12:20 +0530
committerNaveen Pai <naveen.pai@bloomreach.com>2016-11-04 02:12:20 +0530
commiteef97555d7def7da25353e65ee8cf528d7608cc3 (patch)
tree99648a5b7add7685617f4ca089ef2819bf98925c /pathod
parentd51b8933b2191261c0aee3879e3bf776140c0522 (diff)
downloadmitmproxy-eef97555d7def7da25353e65ee8cf528d7608cc3.tar.gz
mitmproxy-eef97555d7def7da25353e65ee8cf528d7608cc3.tar.bz2
mitmproxy-eef97555d7def7da25353e65ee8cf528d7608cc3.zip
Allow forever wait at end of message #1541
Diffstat (limited to 'pathod')
-rw-r--r--pathod/language/writer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pathod/language/writer.py b/pathod/language/writer.py
index ac0f44da..cdb62c3a 100644
--- a/pathod/language/writer.py
+++ b/pathod/language/writer.py
@@ -57,7 +57,9 @@ def write_values(fp, vals, actions, sofar=0, blocksize=BLOCKSIZE):
while actions:
a = actions.pop()
if a[1] == "pause":
- time.sleep(a[2])
+ time.sleep(
+ FOREVER if a[2] == "f" else a[2]
+ )
elif a[1] == "disconnect":
return True
elif a[1] == "inject":