Show More
@@ -915,7 +915,7 b' class Engine(threading.Thread):' | |||||
915 |
|
915 | |||
916 | def delReader(self, socket): |
|
916 | def delReader(self, socket): | |
917 | self.condition.acquire() |
|
917 | self.condition.acquire() | |
918 |
del |
|
918 | del self.readers[socket] | |
919 | self.condition.notify() |
|
919 | self.condition.notify() | |
920 | self.condition.release() |
|
920 | self.condition.release() | |
921 |
|
921 | |||
@@ -1011,7 +1011,7 b' class ServiceBrowser(threading.Thread):' | |||||
1011 | if not expired: |
|
1011 | if not expired: | |
1012 | oldrecord.resetTTL(record) |
|
1012 | oldrecord.resetTTL(record) | |
1013 | else: |
|
1013 | else: | |
1014 |
del |
|
1014 | del self.services[record.alias.lower()] | |
1015 | callback = (lambda x: |
|
1015 | callback = (lambda x: | |
1016 | self.listener.removeService(x, self.type, record.alias)) |
|
1016 | self.listener.removeService(x, self.type, record.alias)) | |
1017 | self.list.append(callback) |
|
1017 | self.list.append(callback) | |
@@ -1380,7 +1380,7 b' class Zeroconf(object):' | |||||
1380 | for browser in self.browsers: |
|
1380 | for browser in self.browsers: | |
1381 | if browser.listener == listener: |
|
1381 | if browser.listener == listener: | |
1382 | browser.cancel() |
|
1382 | browser.cancel() | |
1383 |
del |
|
1383 | del browser | |
1384 |
|
1384 | |||
1385 | def registerService(self, info, ttl=_DNS_TTL): |
|
1385 | def registerService(self, info, ttl=_DNS_TTL): | |
1386 | """Registers service information to the network with a default TTL |
|
1386 | """Registers service information to the network with a default TTL | |
@@ -1423,7 +1423,7 b' class Zeroconf(object):' | |||||
1423 | def unregisterService(self, info): |
|
1423 | def unregisterService(self, info): | |
1424 | """Unregister a service.""" |
|
1424 | """Unregister a service.""" | |
1425 | try: |
|
1425 | try: | |
1426 |
del |
|
1426 | del self.services[info.name.lower()] | |
1427 | if self.servicetypes[info.type] > 1: |
|
1427 | if self.servicetypes[info.type] > 1: | |
1428 | self.servicetypes[info.type] -= 1 |
|
1428 | self.servicetypes[info.type] -= 1 | |
1429 | else: |
|
1429 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now