Encoder shutdown fixes.
authorCarl Hetherington <cth@carlh.net>
Mon, 20 Jun 2016 14:02:15 +0000 (15:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 20 Jun 2016 14:02:15 +0000 (15:02 +0100)
commit795e5d916707da498acc7079ae1fb10aa6af6973
treeb231beddbc88fd5578631b282ddb8ac3ddcdc697
parentcc08eda9243c746d8940259428e61cc90d31c873
Encoder shutdown fixes.

Two fixes here; prevent the servers-list-changed callback being
called when Encoder is being destroyed, and stop ~Encoder throwing
exceptions.

I'm not sure if the catch (...) in ~Encoder will hide problems
that we should be handling, but I think by the time ~Encoder
is happening we'll already have seen any exceptions that we
need to report.
src/lib/encoder.cc
src/lib/encoder.h