MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / stop

Method stop

opcua/server/internal_server.py:182–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 self._set_current_time()
181
182 def stop(self):
183 self.logger.info("stopping internal server")
184 self.isession.close_session()
185 self.subscription_service.set_loop(None)
186 self.history_manager.stop()
187 if self.loop:
188 self.loop.stop()
189 # wait for ThreadLoop to finish before proceeding
190 self.loop.join()
191 self.loop.close()
192 self.loop = None
193
194 def is_running(self):
195 return self.loop is not None

Callers

nothing calls this directly

Calls 3

close_sessionMethod · 0.45
set_loopMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected