Skip to content

Commit

Permalink
simple service now stores the service instance
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwinHughes committed Jun 17, 2024
1 parent ab378e9 commit 4367dee
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 4367dee

Please sign in to comment.