mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
fixed handling of POLL flags on packet radio interface
(was not calling watch() when changing them).
This commit is contained in:
parent
e20cfdb59d
commit
e82d2e73da
@ -100,11 +100,13 @@ void overlay_packetradio_poll(struct sched_ent *alarm)
|
|||||||
if (config.debug.packetradio) DEBUGF("Failed to write any data");
|
if (config.debug.packetradio) DEBUGF("Failed to write any data");
|
||||||
}
|
}
|
||||||
alarm->poll.revents&=~POLLOUT;
|
alarm->poll.revents&=~POLLOUT;
|
||||||
|
watch(alarm);
|
||||||
if (interface->tx_bytes_pending>0) {
|
if (interface->tx_bytes_pending>0) {
|
||||||
// more to write, so keep POLLOUT flag
|
// more to write, so keep POLLOUT flag
|
||||||
} else {
|
} else {
|
||||||
// nothing more to write, so clear POLLOUT flag
|
// nothing more to write, so clear POLLOUT flag
|
||||||
alarm->poll.events&=~POLLOUT;
|
alarm->poll.events&=~POLLOUT;
|
||||||
|
watch(alarm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user