libs/nixio: fix possible issue with nonblocking bind()
[project/luci.git] / libs / nixio / src / bind.c
index 81ab0bb..7112059 100644 (file)
@@ -180,7 +180,7 @@ static int nixio_sock__bind_connect(lua_State *L, int do_bind) {
                        }
 
                        /* on success */
-                       if (!status) {
+                       if (!status || errno == EINPROGRESS) {
                                break;
                        }
                }