Set correct timeout start for websockets

This commit is contained in:
Joris Vink 2014-11-25 20:00:33 +01:00
parent 8fe16c193a
commit 7b286f2f70
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ kore_websocket_handshake(struct http_request *req, struct kore_wscbs *wscbs)
req->owner->proto = CONN_PROTO_WEBSOCKET;
req->owner->wscbs = wscbs;
req->owner->idle_timer.start = 0;
req->owner->idle_timer.start = kore_time_ms();
req->owner->idle_timer.length = kore_websocket_timeout;
if (wscbs->connect != NULL)