NetworkManager/src/systemd
Beniamino Galvani a74e98bfc6 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: 1b1222ffdf
2015-11-11 17:24:39 +01:00
..
src systemd/lldp: avoid compiler warnings in lldp_tfl_package_read* functions 2015-10-31 14:39:04 +01:00
nm-sd-adapt.c systemd/adapt: return G_SOURCE_REMOVE in time event callback 2015-11-11 17:24:39 +01:00
nm-sd-adapt.h merge: merge branch 'systemd' into master 2015-10-08 14:14:19 +02:00