diff --git a/src/main.rs b/src/main.rs index 969e8fc..246b400 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1311,8 +1311,7 @@ impl SockudoServer { .map(|(_app_id, ws_raw_obj)| { async move { let mut ws = ws_raw_obj.inner.lock().await; // Lock the WebSocketRef - if let Err(e) = - ws.close(4009, "User terminated by app.".to_string()).await + if let Err(e) = ws.close(4200, "Server shutting down".to_string()).await { error!("Failed to close WebSocket: {:?}", e); }