another fix
This commit is contained in:
parent
897276897d
commit
97a05b72dd
1 changed files with 2 additions and 0 deletions
|
@ -289,6 +289,8 @@ class SSDPFactory(object):
|
||||||
d.addTimeout(timeout, self._reactor)
|
d.addTimeout(timeout, self._reactor)
|
||||||
found_cb = gather(d, max_devices)
|
found_cb = gather(d, max_devices)
|
||||||
self.protocol.discover_callbacks[address] = found_cb, d
|
self.protocol.discover_callbacks[address] = found_cb, d
|
||||||
|
for st in [SSDP_ALL, SSDP_ROOT_DEVICE, GATEWAY_SCHEMA, GATEWAY_SCHEMA.lower()]:
|
||||||
|
self.protocol.send_m_search(service=st)
|
||||||
try:
|
try:
|
||||||
server_infos = yield d
|
server_infos = yield d
|
||||||
except defer.TimeoutError:
|
except defer.TimeoutError:
|
||||||
|
|
Loading…
Reference in a new issue