diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-08 11:08:31 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-11 17:24:39 +0100 |
commit | a74e98bfc6c17f88f55a528fca842340d19ac559 (patch) | |
tree | d3882fa6afaf56976fe55559855124c2af770e2f /Makefile.glib | |
parent | efe1d66c31226e453f6786f6f0d48872e069d6be (diff) | |
download | NetworkManager-a74e98bfc6c17f88f55a528fca842340d19ac559.tar.gz |
systemd/adapt: return G_SOURCE_REMOVE in time event callback
Differently from GLib timeout sources, systemd ones are always
one-shot and therefore we must return G_SOURCE_REMOVE in the callback,
otherwise the timer will be scheduled again.
In most cases things were working correctly because usually the
callback also unreferences the source event, but when this doesn't
happen the timer will trigger multiple times as reported in the bug
below.
https://bugzilla.redhat.com/show_bug.cgi?id=1278506
Fixes: 1b1222ffdf4d022e482c70af6d745cb8fb6c5fdf
Diffstat (limited to 'Makefile.glib')
0 files changed, 0 insertions, 0 deletions