mirror of
https://github.com/schoebel/mars
synced 2024-12-24 15:43:00 +00:00
net: remember detected rcv state transitions
This commit is contained in:
parent
bd0445ffce
commit
1fe3ff7c89
@ -728,6 +728,9 @@ int mars_recv_raw(struct mars_socket *msock, void *buf, int minlen, int maxlen)
|
|||||||
status = -EIDRM;
|
status = -EIDRM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
} else if (!_socket_not_connected(sock)) {
|
||||||
|
/* Remember the detected state transition ASAP */
|
||||||
|
msock->s_connected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (minlen < maxlen) {
|
if (minlen < maxlen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user