Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,11 +175,11 @@ def handle_connect():
|
|
| 175 |
def handle_disconnect():
|
| 176 |
global connected_clients
|
| 177 |
connected_clients -= 1
|
| 178 |
-
logger.info(f"
|
| 179 |
-
if connected_clients <= 0:
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
|
| 184 |
def cleanup_connections():
|
| 185 |
for region, rag in region_rag_objects.items():
|
|
|
|
| 175 |
def handle_disconnect():
|
| 176 |
global connected_clients
|
| 177 |
connected_clients -= 1
|
| 178 |
+
logger.info(f"클라이언트 연결: {connected_clients}명")
|
| 179 |
+
#if connected_clients <= 0:
|
| 180 |
+
# cleanup_connections()
|
| 181 |
+
# logger.info("서버 종료")
|
| 182 |
+
# os._exit(0)
|
| 183 |
|
| 184 |
def cleanup_connections():
|
| 185 |
for region, rag in region_rag_objects.items():
|