Skip to content

Agent Zero AI framework

Call stop() for tunnel cleanup

frdelc2005f4f7a12
diff --git a/run_tunnel.py b/run_tunnel.py
index a15f06fcb..e7ac7908d 100644
--- a/run_tunnel.py
+++ b/run_tunnel.py
@@ -3,7 +3,7 @@ from flask import Flask, request
from helpers import runtime, dotenv, process
from helpers.print_style import PrintStyle
-from api.tunnel import Tunnel
+from api.tunnel import Tunnel, stop
# initialize the internal Flask server
app = Flask("app")
@@ -50,7 +50,7 @@ def run():
finally:
# Clean up tunnel if it was started
if tunnel:
- tunnel.stop()
+ stop()
# run the internal server