Skip to content

Commit ee417e6

Browse files
committed
Add a delay to any_changed_state mdns update
There is a bug with the router/appliance mode causing the upstream connection to not have the mdns comitup service announcement. This is a workaround to resolve that.
1 parent 4f1c29b commit ee417e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

comitup/nmmon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#
1313

1414
import logging
15+
import time
1516
from functools import partial
1617
from typing import Callable, List, Optional
1718

@@ -137,6 +138,8 @@ def any_changed_state(state: int, *args) -> None:
137138
from comitup import mdns
138139
from comitup.states import dns_names
139140

141+
time.sleep(1)
142+
140143
interesting_states = PASS_STATES + FAIL_STATES
141144

142145
def reset_mdns():

0 commit comments

Comments
 (0)