ubus/lua: pass notification name to callback
[project/ubus.git] / libubus-io.c
index 7047ac5..daa7106 100644 (file)
@@ -375,6 +375,7 @@ int ubus_reconnect(struct ubus_context *ctx, const char *path)
        }
 
        ctx->sock.eof = false;
+       ctx->sock.error = false;
        ctx->sock.fd = usock(USOCK_UNIX, path, NULL);
        if (ctx->sock.fd < 0)
                return UBUS_STATUS_CONNECTION_FAILED;