aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'shard/lib/net')
-rw-r--r--shard/lib/net/group.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/shard/lib/net/group.ex b/shard/lib/net/group.ex
index f3d5962..c982cd0 100644
--- a/shard/lib/net/group.ex
+++ b/shard/lib/net/group.ex
@@ -46,7 +46,7 @@ defmodule SNet.PubShardGroup do
GenServer.cast(notify_to, {:peer_connected, pid})
end
for peer_info <- Shard.Manager.get_shard_peers id do
- if SNet.Manager.get_connections_to peer_info == [] do
+ if SNet.Manager.get_connections_to(peer_info) == [] do
SNet.Manager.add_peer(peer_info,
callback: fn pid ->
GenServer.cast(notify_to, {:peer_connected, pid})