diff --git a/wpaspy/wpaspy.py b/wpaspy/wpaspy.py index 7c2314dc2..24c371908 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