Silently cope with unexpected conserve memory calls. bug24426
authorSteve Powell <steve@rabbitmq.com>
Fri, 16 Sep 2011 11:34:40 +0100
branchbug24426
changeset 5629b72a9dbb35a
parent 561 29d44f8115e9
child 563 f4f417565c98
Silently cope with unexpected conserve memory calls.
src/rabbit_stomp_reader.erl
     1.1 --- a/src/rabbit_stomp_reader.erl	Tue Sep 13 12:04:53 2011 +0100
     1.2 +++ b/src/rabbit_stomp_reader.erl	Fri Sep 16 11:34:40 2011 +0100
     1.3 @@ -112,7 +112,9 @@
     1.4  internal_conserve_memory(true, State = #reader_state{state = running}) ->
     1.5      State#reader_state{state = blocking};
     1.6  internal_conserve_memory(false, State) ->
     1.7 -    State#reader_state{state = running}.
     1.8 +    State#reader_state{state = running};
     1.9 +internal_conserve_memory(_Conserve, State) ->
    1.10 +    State.
    1.11  
    1.12  next_state(blocking, #stomp_frame{command = "SEND"}) ->
    1.13      blocked;