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:
Benjamin Berg 2018-04-04 22:41:43 +02:00 committed by Georges Basile Stavracas Neto
parent 9bab137bb4
commit 466d91afd3

View file

@ -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)