Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow killing escalus_ws connection #131

Merged
merged 1 commit into from Dec 14, 2016
Merged

Conversation

igors
Copy link

@igors igors commented Dec 14, 2016

As discussed in esl/MongooseIM#1105

@igors igors changed the title Kill escalus_ws connection Allow killing escalus_ws connection Dec 14, 2016
@@ -138,6 +139,8 @@ handle_call(use_zlib, _, #state{parser = Parser, socket = Socket} = State) ->
compress = {zlib, {Zin,Zout}}}};
handle_call({set_filter_pred, Pred}, _From, State) ->
{reply, ok, State#state{filter_pred = Pred}};
handle_call(kill_connection, _, #state{socket = Socket } = S) ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Compiler:

Warning: variable 'Socket' is unused

@@ -69,8 +69,9 @@ stop(#client{rcv_pid = Pid}) ->
already_stopped
end.

kill(Transport) ->
error({not_implemented_for, ?MODULE}, [Transport]).
kill(#client{rcv_pid = Pid}) ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Compiler:

Warning: missing specification for function kill/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants