mirror of git://git.sysmocom.de/ofono
Fix context processing test script when no gateway is provided
This commit is contained in:
parent
3d19a00cd7
commit
945a621a2d
|
@ -39,7 +39,10 @@ for path in properties["Modems"]:
|
||||||
|
|
||||||
interface = settings["Interface"]
|
interface = settings["Interface"]
|
||||||
address = settings["Address"]
|
address = settings["Address"]
|
||||||
|
try:
|
||||||
gateway = settings["Gateway"]
|
gateway = settings["Gateway"]
|
||||||
|
except:
|
||||||
|
gateway = "0.0.0.0";
|
||||||
|
|
||||||
if settings["Method"] == "dhcp":
|
if settings["Method"] == "dhcp":
|
||||||
print " Run DHCP on interface %s" % (interface)
|
print " Run DHCP on interface %s" % (interface)
|
||||||
|
|
|
@ -86,7 +86,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
call.connect_to_signal("PropertyChanged", voicecall_property_changed)
|
call.connect_to_signal("PropertyChanged", voicecall_property_changed)
|
||||||
|
|
||||||
gobject.timeout_add(10000, hangup_all)
|
gobject.timeout_add(1000000, hangup_all)
|
||||||
|
|
||||||
mainloop = gobject.MainLoop()
|
mainloop = gobject.MainLoop()
|
||||||
mainloop.run()
|
mainloop.run()
|
||||||
|
|
Loading…
Reference in New Issue