Setting last_io_time in ns_add_sock()

This commit is contained in:
Sergey Lyubka committed 2014-02-20 06:26:44 +00:00
1 parent eea1680cf9
commit 8905522a94
1 file changed
+1
+1
View File
@@ -877,6 +877,7 @@ struct ns_connection *ns_add_sock(struct ns_server *s, sock_t sock, void *p) {
conn->sock = sock;
conn->connection_data = p;
conn->server = s;
conn->last_io_time = time(NULL);
add_connection(s, conn);
DBG(("%p %d", conn, sock));
}