diff options
-rw-r--r-- | src/core/ws_protocol.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/ws_protocol.c b/src/core/ws_protocol.c index 3bb8eba..d039948 100644 --- a/src/core/ws_protocol.c +++ b/src/core/ws_protocol.c @@ -718,6 +718,11 @@ ws_handle_message( /* DEBUG END */ if (!session->token_base64) { + /* token is not used, we need to + * generate random sid */ + generate_random_session_sid(session); + backend_get(session->backend_module_name, session); + backend_fill_settings(session); if (!info || !info->backend) { const char *msg @@ -736,9 +741,7 @@ ws_handle_message( { return false; } - /* token is not used, we need to - * generate random sid */ - generate_random_session_sid(session); + session->session_state = ws_session_started; |