diff options
Diffstat (limited to 'tests/pjsua/run.py')
-rw-r--r-- | tests/pjsua/run.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/pjsua/run.py b/tests/pjsua/run.py index 19b56376..d6d558b1 100644 --- a/tests/pjsua/run.py +++ b/tests/pjsua/run.py @@ -186,8 +186,12 @@ def handle_error(errmsg, t, close_processes = True): if (close_processes): time.sleep(1) for p in t.process: - p.send("q") - p.send("q") + # Protect against 'Broken pipe' exception + try: + p.send("q") + p.send("q") + except: + pass is_err = False try: ret = p.expect(const.DESTROYED, False) |