]> prime8.dev >> repos - ttyd.git/commitdiff
server: add a tiny timeout to lws_service
authorShuanglei Tao <tsl0922@gmail.com>
Thu, 28 Nov 2019 12:46:05 +0000 (20:46 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Thu, 28 Nov 2019 12:46:05 +0000 (20:46 +0800)
src/server.c

index 2ba0927d0e279b10185bb5ee3256270e35dbc909..e1ee717bc79386e4e60405d20772a41494a8aef8 100644 (file)
@@ -502,7 +502,7 @@ main(int argc, char **argv) {
 #endif
             }
         }
-        lws_service(context, 0);
+        lws_service(context, 10);
     }
 
     lws_context_destroy(context);