summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/socket
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/socket')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 8c2f50db359..81187eeca17 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -1358,6 +1358,8 @@ socket_event_poll_out(rpc_transport_t *this)
if (ret == 0)
ret = rpc_transport_notify(this, RPC_TRANSPORT_MSG_SENT, NULL);
+ if (ret > 0)
+ ret = 0;
out:
return ret;
}