mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
event: fix sd_event_source_set_io_events()
This commit is contained in:
parent
44b601bc79
commit
e471512768
@ -1002,7 +1002,7 @@ int sd_event_source_set_io_events(sd_event_source *s, uint32_t events) {
|
||||
return 0;
|
||||
|
||||
if (s->enabled != SD_EVENT_OFF) {
|
||||
r = source_io_register(s, s->io.events, events);
|
||||
r = source_io_register(s, s->enabled, events);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user