X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus-io.c;fp=libubus-io.c;h=daa710677880c1d5933b45ab9b528116c5f320ca;hp=7047ac5ea76a0f4c5fae5a6455ddba551fafdf22;hb=dfe338350e4dc6912a2552570fa5dd8d5bc84ff0;hpb=6eb3c9647e04d38f14e6c8d3e2d9b6922f2a43d1 diff --git a/libubus-io.c b/libubus-io.c index 7047ac5..daa7106 100644 --- a/libubus-io.c +++ b/libubus-io.c @@ -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;