From 80d01111cf8349e4ddd4f19d170bc288b3ccf32f Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 20 Jan 2023 16:26:10 +0530 Subject: [PATCH] rename refresh() to _new() a session CANNOT be refreshed. The reason of the whole excercise it to guarantee that all sessions created will have the same callback functions registered on the engine (the ones from the CallbackDispatcher) --- src/Adapter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter.cc b/src/Adapter.cc index a0ed7d6..7bcb3e4 100644 --- a/src/Adapter.cc +++ b/src/Adapter.cc @@ -65,7 +65,7 @@ namespace pEp { ::adapter_group_init(); } - void Session::refresh() + void Session::_new() { std::lock_guard lock(mut);