mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
tcp: fix poll
This commit is contained in:
@@ -1236,7 +1236,7 @@ static int internalpoll(tcb_t *tcb, polldata_t* data, int events) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (revents == 0)
|
if (data && revents == 0)
|
||||||
poll_add(&tcb->pollheader, data, events);
|
poll_add(&tcb->pollheader, data, events);
|
||||||
|
|
||||||
return revents;
|
return revents;
|
||||||
|
|||||||
Reference in New Issue
Block a user