Skip to content

Commit

Permalink
Restore ms delay
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-marquez-csa committed Jul 25, 2024
1 parent 2b7adc8 commit 1c6d562
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python_testing/mdns_discovery/mdns_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import json
from dataclasses import asdict, dataclass
from enum import Enum
from time import sleep
from typing import Dict, List, Optional, Union, cast

from mdns_discovery.mdns_async_service_info import DNSRecordType, MdnsAsyncServiceInfo
Expand Down Expand Up @@ -87,6 +88,7 @@ def __init__(self):
self.updated_event = asyncio.Event()

def add_service(self, zeroconf: Zeroconf, service_type: str, name: str) -> None:
sleep(0.25)
self.updated_event.set()

def remove_service(self, zeroconf: Zeroconf, service_type: str, name: str) -> None:
Expand Down

0 comments on commit 1c6d562

Please sign in to comment.