From 0804c1285fe16977bce9f69c426a59994bebf594 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 18 Jun 2025 09:07:50 +0800 Subject: feat: shutdownClients accepts an optional cb func now fix: disallow creation of multiple clientManager --- include/libsock/server/client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libsock/server/client.hpp b/include/libsock/server/client.hpp index 6a5aa88..3b0d38d 100644 --- a/include/libsock/server/client.hpp +++ b/include/libsock/server/client.hpp @@ -89,7 +89,7 @@ class Clients { void addClient(const Client &client); bool nameExists(const std::string &name); - void shutdownClients(); + void shutdownClients(std::optional>> &)>> cb = std::nullopt); SP getByName(const std::string &name) const; SP getByIp(const std::string &ip) const; -- cgit v1.2.3