brotorift 0.7.1 → 0.7.2
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 +5 -1
- 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: 5dcfa0499745e387f4780970db3f823da01309a8bbcdd7c0ce3ed6f7732bf31e
|
4
|
+
data.tar.gz: 8cb5291054bf10194f20a285290635189139aaf1720ff12bc3f43c4df9635ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0562c396bd954280c5b4d5c084bd7e0f277bf83f79948ca4bd9fe8f398c336a1520c6c1b83c5cbba1d233d96911018a4db4ea55907378b538ad8a7a89123a6a6
|
7
|
+
data.tar.gz: 34754d69f54443e33e8fa8a85fbbfd532dc47ef64195085ed3fb448d89cd490e15271bbead5e05fb33bf0dc88a97401a2401be0a24a8c24db8cbf22a7e014f8e
|
@@ -41,7 +41,7 @@ defmodule <%= node.namespace %>.<%= node.elixir_connection %> do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def stop(pid) do
|
44
|
-
GenServer.
|
44
|
+
GenServer.cast(pid, :stop)
|
45
45
|
end
|
46
46
|
|
47
47
|
def init({socket, transport, handler}) do
|
@@ -49,6 +49,10 @@ defmodule <%= node.namespace %>.<%= node.elixir_connection %> do
|
|
49
49
|
{:ok, {socket, transport, handler, state}}
|
50
50
|
end
|
51
51
|
|
52
|
+
def handle_cast(:stop, state) do
|
53
|
+
{:stop, :normal, state}
|
54
|
+
end
|
55
|
+
|
52
56
|
def handle_cast({:handle_data, data}, {socket, transport, handler, state}) do
|
53
57
|
result = process_packet(data, handler, state)
|
54
58
|
case result do
|