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:
1 parent
9e48b8ab65
commit
8e39eac207
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user