Created close_latest_connection method for ngrok

This commit is contained in:
sTiKyt 2020-08-22 18:41:24 +00:00
parent 6d16f0ed0c
commit 0e3ede4f0a

View File

@ -14,3 +14,9 @@ class NgrokController:
self._tunnels = None
self._ngrok_url = None
def close_latest_connection(self):
try:
self._model.disconnect(self._ngrok_url)
except self._exceptions.PyngrokError:
print("Can't find any latest connections.") # FIXME replace with View entry
pass