Skip to content

Commit

Permalink
Merge pull request #23 from AlwinHughes/master
Browse files Browse the repository at this point in the history
Fixed issue where the SimpleService stop_announce method would crash
  • Loading branch information
afflux authored Dec 18, 2024
2 parents ab378e9 + 4367dee commit 6fbb12f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/someip/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ async def start_datagram_endpoint(
return prot

def start_announce(self, announcer: sd.ServiceAnnouncer):
instance = sd.ServiceInstance(
self.service_instance = sd.ServiceInstance(
self.as_config(), self, announcer, announcer.timings
)
announcer.announce_service(instance)
announcer.announce_service(self.service_instance)

def stop_announce(self, announcer: sd.ServiceAnnouncer):
announcer.stop_announce_service(self.as_config(), self)
announcer.stop_announce_service(self.service_instance)

def stop(self): # pragma: nocover
self.transport.close()
Expand Down

0 comments on commit 6fbb12f

Please sign in to comment.