discovery: start name counter at 1

We want our second instance with the same name to show up as (2) not (1)
This commit is contained in:
Gina Häußge committed 2018-10-19 14:17:16 +02:00
1 parent 9e48b8ab65
commit 8e39eac207
1 file changed
+1 -1
+1 -1
View File
@@ -195,7 +195,7 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin,
key = (reg_type, port)
counter = 0
counter = 1
while True:
try:
self._sd_refs[key] = pybonjour.DNSServiceRegister(**params)