chiark / gitweb /
timesyncd: only listen to clock changes when connected
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Jul 2014 13:52:17 +0000 (09:52 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Jul 2014 13:52:19 +0000 (09:52 -0400)
commitc566ee3253132cc2ec37ed04c5bccbadf8e60c58
tree79b177cee45c78456e246aaf9ca17c57b899a2e9
parentafc7b1b9c170b9d23a3d91367e00f33b2ee2e89e
timesyncd: only listen to clock changes when connected

This reverts previous commit and applies a different fix.

manager_clock_watch() callback calls manager_send_request() to kick
off a resync. We can only do that when we're actually connected to
something. It is not useful to setup the callback from manager_new().

Now the callback will be dropped in manager_connect() and requested
in manager_begin().

https://bugs.freedesktop.org/show_bug.cgi?id=80932
src/timesync/timesyncd.c