module-loopback: Never call adjust_rates after teardown
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 20 Mar 2012 10:44:15 +0000 (11:44 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Tue, 20 Mar 2012 10:44:15 +0000 (11:44 +0100)
commit00c3a4958e543a98ae05988b104129d02b596194
tree428a75ceb4b187fc371fcf9bfdbb968e246f0c30
parent13d388b4ce92f51351aacca4a3ab9c895fea72a9
module-loopback: Never call adjust_rates after teardown

Calling adjust_rates after teardown results in segfault, and
judging from the Ubuntu bug report, this can happen.
Actively prevent this by destroying the time event, and by
setting adjust_time to 0, we also prevent this routine being
called on max request update.

BugLink: https://bugs.launchpad.net/bugs/946400
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/module-loopback.c