diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-08-06 01:23:55 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-08-06 01:23:55 +0000 |
commit | fd3a3799c53f7881760f22e12d414d5d3ce96a84 (patch) | |
tree | cbae4433cf3560b10ed37f1ed7a90fb2726d6840 /tests | |
parent | d904e30b3c100fbac6742b6528467a11ce90e289 (diff) |
Misc (re #1068): fix the misleading alien socket error from the SIP python self-test module
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3252 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pjsua/inc_sip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pjsua/inc_sip.py b/tests/pjsua/inc_sip.py index ee4e0173..9797941f 100644 --- a/tests/pjsua/inc_sip.py +++ b/tests/pjsua/inc_sip.py @@ -166,9 +166,9 @@ class Dialog: src_addr = None while time.time() < endtime: readset = select([self.sock], [], [], timeout) - if len(readset) < 1 or not self.sock in readset[0]: - if len(readset) < 1: - print "select() returns " + str(len(readset)) + if len(readset[0]) < 1 or not self.sock in readset[0]: + if len(readset[0]) < 1: + print "select() timeout" elif not self.sock in readset[0]: print "select() alien socket" else: |