kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 587a663f31f5f649529631b35aacfecf43fa9060
parent 8b26ecdf140c13b804dbfa1bb3a98b7be01e8cf5
Author: Joris Vink <joris@coders.se>
Date:   Mon, 30 Jan 2017 22:25:08 +0100

reorder ws disconnect order a bit.

Diffstat:
src/websocket.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/websocket.c b/src/websocket.c @@ -353,11 +353,11 @@ websocket_recv_frame(struct netbuf *nb) static void websocket_disconnect(struct connection *c) { + if (c->ws_disconnect != NULL) + kore_runtime_wsdisconnect(c->ws_disconnect, c); + if (!(c->flags & CONN_WS_CLOSE_SENT)) { c->flags |= CONN_WS_CLOSE_SENT; kore_websocket_send(c, WEBSOCKET_OP_CLOSE, NULL, 0); } - - if (c->ws_disconnect != NULL) - kore_runtime_wsdisconnect(c->ws_disconnect, c); }