1
0
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:
Lennart Poettering 2013-10-16 05:56:37 +02:00
parent 44b601bc79
commit e471512768

View File

@ -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;
}