mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: iwd.py: make wait() a static method
This allows it to be used without initializing an IWD class: IWD.wait(1)
This commit is contained in:
parent
63b0778c99
commit
2e882946f8
@ -1133,7 +1133,8 @@ class IWD(AsyncOpAbstract):
|
|||||||
' condition was not met in '\
|
' condition was not met in '\
|
||||||
+ str(max_wait) + ' sec'))
|
+ str(max_wait) + ' sec'))
|
||||||
|
|
||||||
def wait(self, time):
|
@staticmethod
|
||||||
|
def wait(time):
|
||||||
ctx.non_block_wait(lambda : False, time, exception=False)
|
ctx.non_block_wait(lambda : False, time, exception=False)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user