brotorift 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/elixir_server_generator.ex.erb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d252d998fd9325e68a6d94de1089cf25fcb7eaee49d5b765b9194cf8da0d8a
|
4
|
+
data.tar.gz: d6a34e8307e59f6b0526c9f495bb9ddf1784492359720af92ea722d12185e197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c3e769db37d95bbcf15ce6cffeb453ee63ced140ef3d43b54ea2c5eb9218387481cfb65abbc1f2708af9d68bde1d20023d0355c66ef9c169fd0a1c8a59d21ab
|
7
|
+
data.tar.gz: af59ab37fffd8449517f65a0bdc3cf1e3cd20240d0c52d2894f10300b8c3f8b421cfe361c60a3fad590c87fc81ad9e9d921938edbb55eaaa4acaf3d460831def
|
@@ -95,7 +95,7 @@ defmodule <%= node.namespace %>.<%= node.elixir_connection %> do
|
|
95
95
|
{:ok, new_state} ->
|
96
96
|
{:noreply, {socket, transport, handler, new_state}}
|
97
97
|
{:stop, reason, new_state} ->
|
98
|
-
{:stop, reason, new_state}
|
98
|
+
{:stop, reason, {socket, transport, handler, new_state}}
|
99
99
|
end
|
100
100
|
end
|
101
101
|
<% for m in n.out_direction.messages.values %>
|
@@ -107,8 +107,9 @@ defmodule <%= node.namespace %>.<%= node.elixir_connection %> do
|
|
107
107
|
{:noreply, {socket, transport, handler, state}}
|
108
108
|
end
|
109
109
|
<% end %>
|
110
|
-
def terminate(_reason, {
|
110
|
+
def terminate(_reason, {socket, transport, handler, state}) do
|
111
111
|
handler.close_connection(self(), state)
|
112
|
+
transport.close(socket)
|
112
113
|
end
|
113
114
|
|
114
115
|
defp process_packet(<<>>, _handler, state) do
|