anchor.diff:          schedule_next_renewal(State)
       end,
   
  -    case failed_connection_attempts_exceeded(NewState) of
  -        true -> {error, peer_offline};
  -        false -> {ok, NewState}
  +    case failed_connection_attempts_limit_exceeded(NewState) of
  +        true -> terminate_session(NewState);
  +        false -> NewState
       end;
   renew_connections(State) ->
  -    {ok, State}.
  +    State.
   
   
   %%--------------------------------------------------------------------
  
positive.code:                 connecting = LeftoverConnecting
              });
          error ->
              handle_connection_death(State#state{
                  connected = maps:remove(ConnPid, Connected)
              })
      end;
  
  handle_info(Info, State) ->
  
negative.code: 
  -behaviour(gen_server).
  
  -include("global_definitions.hrl").
  -include_lib("ctool/include/logging.hrl").
  -include_lib("ctool/include/onedata.hrl").
  
  