summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-08 15:48:58 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-16 17:57:19 +0200
commitd21b7140f44a30c00dab401bf06124a456fefd9e (patch)
treec5ec20d7fbecf8524672d5e38d124b9509e23b39 /src
parentce4ed1660bd9c137c34d0c3afa86d72a8c0555fb (diff)
Make stop() private and use drop() instead.
This avoids confusing situations where we call stop(), then try to restart the finder (unsuccessfully, because once it's stop()ped it will stay around, never to be restarted).
Diffstat (limited to 'src')
-rw-r--r--src/lib/encode_server_finder.h3
-rw-r--r--src/tools/dcpomatic_cli.cc2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/encode_server_finder.h b/src/lib/encode_server_finder.h
index f8a30af54..c478387f9 100644
--- a/src/lib/encode_server_finder.h
+++ b/src/lib/encode_server_finder.h
@@ -50,8 +50,6 @@ public:
static EncodeServerFinder* instance ();
static void drop ();
- void stop ();
-
std::list<EncodeServerDescription> servers () const;
/** Emitted whenever the list of servers changes */
@@ -62,6 +60,7 @@ private:
~EncodeServerFinder ();
void start ();
+ void stop ();
void search_thread ();
void listen_thread ();
diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc
index 96bf83086..2abc3a149 100644
--- a/src/tools/dcpomatic_cli.cc
+++ b/src/tools/dcpomatic_cli.cc
@@ -413,7 +413,7 @@ main (int argc, char* argv[])
signal_manager = new SignalManager ();
if (no_remote || export_format) {
- EncodeServerFinder::instance()->stop ();
+ EncodeServerFinder::drop();
}
if (json_port) {