Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shutting down calls to the visualization server #241

Merged
merged 13 commits into from
Jun 18, 2015
Merged
Prev Previous commit
Next Next commit
Made stop_server method from private
  • Loading branch information
sahilshekhawat committed Jun 17, 2015
commit a628c1c1098840214ddb1756b603d580dcf608ce
4 changes: 2 additions & 2 deletions pydy/viz/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def run_server(self):
print(url)
webbrowser.open(url)
print("Hit Ctrl+C to stop the server...")
signal.signal(signal.SIGINT, self.stop_server)
signal.signal(signal.SIGINT, self._stop_server)
self.httpd.serve()

def stop_server(self, signal, frame):
def _stop_server(self, signal, frame):
"""
Confirms and stops the visulisation server
:param signal:
Expand Down