summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-08 15:48:58 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-18 13:46:50 +0200
commitb0c1482f98c7e00634c1bc3dd801e76ce69907e2 (patch)
tree9c634a1b2914d4bf889e171b73c770469415f799 /src/lib
parent617b8cd303b4a96621a207724c55bed1d749b10c (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/lib')
-rw-r--r--src/lib/encode_server_finder.h3
1 files changed, 1 insertions, 2 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 ();