diff --git a/client_http.hpp b/client_http.hpp index e14d3e5..cf9da1a 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -352,7 +352,7 @@ namespace SimpleWeb { } /// Close connections - void close() { + void stop() { std::unique_lock lock(connections_mutex); for(auto it = connections.begin(); it != connections.end();) { (*it)->attempt_reconnect = false; @@ -366,7 +366,7 @@ namespace SimpleWeb { auto lock = cancel_callbacks_mutex->unique_lock(); *cancel_callbacks = true; } - close(); + stop(); } protected: diff --git a/tests/io_test.cpp b/tests/io_test.cpp index f205a7f..3efff9e 100644 --- a/tests/io_test.cpp +++ b/tests/io_test.cpp @@ -350,7 +350,7 @@ int main() { io_service->run(); }); this_thread::sleep_for(chrono::milliseconds(100)); - client.close(); + client.stop(); this_thread::sleep_for(chrono::milliseconds(100)); thread.join(); assert(call);