mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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;
|
||||
}
|
||||
|
||||
if (revents == 0)
|
||||
if (data && revents == 0)
|
||||
poll_add(&tcb->pollheader, data, events);
|
||||
|
||||
return revents;
|
||||
|
||||
Reference in New Issue
Block a user