diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-22 20:34:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-25 08:00:51 +0100 |
| commit | b2c412480aa2cc29bfbb90556f974e9294608898 (patch) | |
| tree | 21679eaa94e91ed8c2eec2800f25fe7abe56827e /src/lib/encode_server_finder.h | |
| parent | 5ec4efca61906608e2e7a590b3d1c3f2b7078e81 (diff) | |
Avoid boost::bind()ing a shared_ptr.
Diffstat (limited to 'src/lib/encode_server_finder.h')
| -rw-r--r-- | src/lib/encode_server_finder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/encode_server_finder.h b/src/lib/encode_server_finder.h index efb498880..f8a30af54 100644 --- a/src/lib/encode_server_finder.h +++ b/src/lib/encode_server_finder.h @@ -67,7 +67,7 @@ private: void listen_thread (); void start_accept (); - void handle_accept (boost::system::error_code ec, std::shared_ptr<Socket> socket); + void handle_accept (boost::system::error_code ec); void config_changed (Config::Property what); @@ -88,5 +88,7 @@ private: boost::condition _search_condition; boost::mutex _search_condition_mutex; + std::shared_ptr<Socket> _accept_socket; + static EncodeServerFinder* _instance; }; |
