diff options
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 6b520571a..2a6026879 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -93,7 +93,9 @@ Encoder::begin () _threads.push_back (new boost::thread (boost::bind (&Encoder::encoder_thread, this, optional<ServerDescription> ()))); } - ServerFinder::instance()->connect (boost::bind (&Encoder::server_found, this, _1)); + if (!ServerFinder::instance()->disabled ()) { + _server_found_connection = ServerFinder::instance()->connect (boost::bind (&Encoder::server_found, this, _1)); + } } void |
