Permalink
Browse files

Make children in etorrent_peer_sup transient.

  • Loading branch information...
1 parent 4575584 commit 02438fcdf43598d26a727b733010d14f508e88f5 @jlouis committed Oct 20, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 src/etorrent_dht.erl
  2. +3 −3 src/etorrent_peer_sup.erl
@@ -3,6 +3,7 @@
%% @end
-module(etorrent_dht).
-behaviour(supervisor).
+
-export([start_link/0,
start_link/1,
start_link/2,
@@ -52,11 +52,11 @@ init([TrackerUrl, LocalPeerId, InfoHash, Id, {IP, Port}, Caps, Socket]) ->
Control = {control, {etorrent_peer_control, start_link,
[TrackerUrl, LocalPeerId, InfoHash, Id, {IP, Port},
Caps, Socket]},
- permanent, 5000, worker, [etorrent_peer_control]},
+ transient, 5000, worker, [etorrent_peer_control]},
Receiver = {receiver, {etorrent_peer_recv, start_link,
[Id, Socket]},
- permanent, 5000, worker, [etorrent_peer_recv]},
+ transient, 5000, worker, [etorrent_peer_recv]},
Sender = {sender, {etorrent_peer_send, start_link,
[Socket, Id, false]},
- permanent, 5000, worker, [etorrent_peer_send]},
+ transient, 5000, worker, [etorrent_peer_send]},
{ok, {{one_for_all, 0, 1}, [Control, Sender, Receiver]}}.

0 comments on commit 02438fc

Please sign in to comment.