windows another uv_poll_init
authorAndy Green <andy@warmcat.com>
Tue, 19 Apr 2016 01:10:08 +0000 (09:10 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 19 Apr 2016 01:10:08 +0000 (09:10 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libuv.c

index 090cf7436865313a90c63ad9e3722d22c872305e..b00d2a8783fae575e4a22d825a2ec226fbe0aea3 100644 (file)
@@ -255,7 +255,7 @@ lws_libuv_accept(struct lws *wsi, int accept_fd)
 
        wsi->w_read.context = context;
 
-       uv_poll_init(pt->io_loop_uv, &wsi->w_read.uv_watcher, accept_fd);
+       uv_poll_init_socket(pt->io_loop_uv, &wsi->w_read.uv_watcher, accept_fd);
 }
 
 void