MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / stop_interaction_api

Function stop_interaction_api

src/interaction_handler.py:143–150  ·  view source on GitHub ↗

Stops the HTTP server.

(httpd)

Source from the content-addressed store, hash-verified

141 return httpd, server_thread
142
143def stop_interaction_api(httpd):
144 """
145 Stops the HTTP server.
146 """
147 print("Shutting down server...")
148 httpd.shutdown() # Stop serve_forever()
149 httpd.server_close() # Close the underlying socket
150 print("Server stopped.")
151

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected