mirror of
https://github.com/schoebel/mars
synced 2025-01-03 04:42:17 +00:00
net: fix bad return value of mars_send_raw()
This commit is contained in:
parent
5fc2fa0adb
commit
0f6c98ae4d
@ -421,7 +421,7 @@ int _mars_send_raw(struct mars_socket *msock, const void *buf, int len)
|
||||
sleeptime = 1000 / HZ;
|
||||
}
|
||||
|
||||
if (sent > 0)
|
||||
if (status >= 0)
|
||||
status = sent;
|
||||
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user