another fix

This commit is contained in:
Jack Robison 2018-07-29 18:41:25 -04:00
parent 897276897d
commit 97a05b72dd
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

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