Merge bug24753 into default

This commit is contained in:
Steve Powell 2012-02-23 15:36:19 +00:00
commit 3727b4ac7b
1 changed files with 5 additions and 2 deletions

View File

@ -93,9 +93,12 @@ handle_cast({"CONNECT", Frame, noflow}, State) ->
handle_cast(Request, State = #state{channel = none,
config = #stomp_configuration{
implicit_connect = true}}) ->
{noreply, State1, _} =
{noreply, State1 = #state{channel = Ch}, _} =
process_connect(implicit, #stomp_frame{headers = []}, State),
handle_cast(Request, State1);
case Ch of
none -> {stop, normal, State1};
_ -> handle_cast(Request, State1)
end;
handle_cast(_Request, State = #state{channel = none,
config = #stomp_configuration{