Skip to content

Commit 531624a

Browse files
committed
Fix shutdown_gracefully always using CLOSE_STATUS_NORMAL
1 parent edd0e20 commit 531624a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket_server/websocket_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _disconnect_clients_gracefully(self, status=CLOSE_STATUS_NORMAL, reason=DEFA
220220
Terminate clients gracefully without shutting down the server
221221
"""
222222
for client in self.clients:
223-
client["handler"].send_close(CLOSE_STATUS_NORMAL, reason)
223+
client["handler"].send_close(status, reason)
224224
self._terminate_client_handlers()
225225

226226
def _disconnect_clients_abruptly(self):

0 commit comments

Comments
 (0)