From 490e33e2d105f1c7095928c8b5da2b59f5b641f7 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 7 Jul 2017 23:19:15 +0200 Subject: [PATCH] Client::close renamed to Client::stop --- client_http.hpp | 4 ++-- tests/io_test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);