loopback: Move timer restart and snapshots to timer callback
authorGeorg Chini <georg@chini.tk>
Sun, 5 Jun 2016 19:05:08 +0000 (21:05 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 13 Jul 2016 22:13:32 +0000 (01:13 +0300)
commit919cc2f3f9ae0e2368b08086b9b566a53ec51481
tree86404fad6c0e1a4ba3edce068f2e8464775dbb0a
parentb494bd62dd39201140d46339d727471d2d4db245
loopback: Move timer restart and snapshots to timer callback

Restaring the timer and obtaining the latency snapshots belong to the timer callback.
To maintain an adjust time as near as possible to the configured value, the timer is
now restarted immediately at the beginning of the timer callback.
src/modules/module-loopback.c