tests/network: Fix deprecation warning in NM test service
This just fixes a simple deprecation warning in the NetworkManager test service.
This commit is contained in:
parent
9bab137bb4
commit
466d91afd3
1 changed files with 1 additions and 1 deletions
|
@ -1428,7 +1428,7 @@ def main():
|
|||
|
||||
# Watch stdin; if it closes, assume our parent has crashed, and exit
|
||||
io = GLib.IOChannel(0)
|
||||
io.add_watch(GLib.IOCondition.HUP, stdin_cb)
|
||||
GLib.io_add_watch(io, GLib.PRIORITY_LOW, GLib.IOCondition.HUP, stdin_cb)
|
||||
|
||||
# also quit after inactivity to ensure we don't stick around if the above fails somehow
|
||||
GLib.timeout_add_seconds(20, quit_cb, None)
|
||||
|
|
Loading…
Add table
Reference in a new issue