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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec815c3f6bf6be4219a1d516bad35445d34b49a268e4c77615b4412583dd750b
4
- data.tar.gz: 99e29f05a34a2517aab5e2e2365e514fb32051aa32a44b6628aa048ea6194edd
3
+ metadata.gz: 5dcfa0499745e387f4780970db3f823da01309a8bbcdd7c0ce3ed6f7732bf31e
4
+ data.tar.gz: 8cb5291054bf10194f20a285290635189139aaf1720ff12bc3f43c4df9635ed1
5
5
  SHA512:
6
- metadata.gz: 1958086bf357ca8e78ac59cfeee35cfbb23dde2cbe067a3c499519dd5def2f6be4345f0c54ec4133e8308ad1766ad0ae4ad3ccb3a4e4ee851432246dcb08e0e9
7
- data.tar.gz: 8b727b7b9038828b4715ebad10dc7e6343dbf7f3d1f2d111074d61257af23891032756f8d481e3a82361e691294809d7fd679ec013443c76fd789fbf632aba2f
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.stop(pid)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brotorift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ren