~ubuntu-branches/ubuntu/trusty/rabbitmq-server/trusty

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-mqtt/src/rabbit_mqtt_reader.erl

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2013-12-11 17:31:14 UTC
  • mfrom: (0.5.9) (0.1.45 sid)
  • Revision ID: package-import@ubuntu.com-20131211173114-rvd3b6vk56w595na
Tags: 3.2.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
            {stop, {network_error, Reason}, undefined}
67
67
    end;
68
68
 
69
 
handle_call(duplicate_id, _From,
 
69
handle_call(Msg, From, State) ->
 
70
    stop({mqtt_unexpected_call, Msg, From}, State).
 
71
 
 
72
handle_cast(duplicate_id,
70
73
            State = #state{ proc_state = PState,
71
74
                            conn_name  = ConnName }) ->
72
75
    log(warning, "MQTT disconnecting duplicate client id ~p (~p)~n",
73
76
                 [rabbit_mqtt_processor:info(client_id, PState), ConnName]),
74
77
    stop({shutdown, duplicate_id}, State);
75
78
 
76
 
handle_call(Msg, From, State) ->
77
 
    stop({mqtt_unexpected_call, Msg, From}, State).
78
 
 
79
79
handle_cast(Msg, State) ->
80
80
    stop({mqtt_unexpected_cast, Msg}, State).
81
81