Use 3 second timeout for blocking calls to NetworkManager, not 3000 seconds! (#3905)
This commit is contained in:
parent
ed40d65791
commit
ff509f5030
@ -338,7 +338,7 @@ class Device(gobject.GObject):
|
|||||||
if self._type != DEVICE_TYPE_802_11_MESH_OLPC:
|
if self._type != DEVICE_TYPE_802_11_MESH_OLPC:
|
||||||
raise RuntimeError("Only valid for mesh devices")
|
raise RuntimeError("Only valid for mesh devices")
|
||||||
try:
|
try:
|
||||||
step = self.dev.getMeshStep(timeout=3000)
|
step = self.dev.getMeshStep(timeout=3)
|
||||||
except dbus.DBusException, e:
|
except dbus.DBusException, e:
|
||||||
step = 0
|
step = 0
|
||||||
return step
|
return step
|
||||||
@ -346,7 +346,7 @@ class Device(gobject.GObject):
|
|||||||
def get_frequency(self):
|
def get_frequency(self):
|
||||||
freq = 0.0
|
freq = 0.0
|
||||||
try:
|
try:
|
||||||
freq = self.dev.getFrequency(timeout=3000)
|
freq = self.dev.getFrequency(timeout=3)
|
||||||
except dbus.DBusException, e:
|
except dbus.DBusException, e:
|
||||||
pass
|
pass
|
||||||
# Hz -> GHz
|
# Hz -> GHz
|
||||||
|
Loading…
Reference in New Issue
Block a user