Skip to content

Commit

Permalink
fix(ServerCore): forget to ping the first member
Browse files Browse the repository at this point in the history
  • Loading branch information
kalitine committed Sep 14, 2017
1 parent 3570e8f commit 2d4aabb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3019,6 +3019,7 @@ class ServerCore {
const net = new Network(key, peer);
networks.set(key, net);
peer.send({ isFirst: true });
peer.startPing();
}

// Subscribe to peer messages
Expand Down
1 change: 1 addition & 0 deletions src/ServerCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class ServerCore {
const net = new Network(key, peer)
networks.set(key, net)
peer.send({ isFirst: true })
peer.startPing()
}

// Subscribe to peer messages
Expand Down

0 comments on commit 2d4aabb

Please sign in to comment.