mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wpaspy: Add optional timeout argument for pending()
This can be used to wait for up to the specified limit on new event messages. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
adf277a007
commit
606110e647
@ -70,8 +70,8 @@ class Ctrl:
|
|||||||
return None
|
return None
|
||||||
raise Exception("DETACH failed")
|
raise Exception("DETACH failed")
|
||||||
|
|
||||||
def pending(self):
|
def pending(self, timeout=0):
|
||||||
[r, w, e] = select.select([self.s], [], [], 0)
|
[r, w, e] = select.select([self.s], [], [], timeout)
|
||||||
if r:
|
if r:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user