aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wpaspy/wpaspy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpaspy/wpaspy.py b/wpaspy/wpaspy.py
index 7c2314d..24c3719 100644
--- a/wpaspy/wpaspy.py
+++ b/wpaspy/wpaspy.py
@@ -70,8 +70,8 @@ class Ctrl:
return None
raise Exception("DETACH failed")
- def pending(self):
- [r, w, e] = select.select([self.s], [], [], 0)
+ def pending(self, timeout=0):
+ [r, w, e] = select.select([self.s], [], [], timeout)
if r:
return True
return False