anchor.diff:  reset_bind_state(State) ->
       maps:remove(bind_id, State).
   
  +-spec reset_session_state(state()) -> state().
  +reset_session_state(State) ->
  +    maps:remove(session_response_id, State).
  +
   -spec reset_state(state()) -> state().
   reset_state(State) ->
       State1 = reset_bind_state(State),
       State2 = reset_sasl_state(State1),
       State3 = reset_connection_state(State2),
  -    reset_stream_state(State3).
  +    State4 = reset_session_state(State3),
  +    reset_stream_state(State4).
   
   %%%===================================================================
   %%% Connection stuff
  
positive.code: 		      sub_els = [#bind{resource = R}]},
  	    State1 = State#{stream_state => wait_for_bind_response,
  			    bind_id => ID},
  	    send_pkt(State1, Pkt);
  	false ->
  	    Txt = <<"Missing resource binding feature">>,
  	    send_pkt(State, xmpp:serr_invalid_xml(Txt, Lang))
  
negative.code: 	    State;
  	_ when StateName == wait_for_bind_response ->
  	    process_bind_response(Pkt, State);
  	_ when StateName == wait_for_session_response ->
  	    process_session_response(Pkt, State);
  	_ ->
  	    process_packet(Pkt, State)
      end.
  