Skip to content

Commit 952df70

Browse files
committed
typo
1 parent 4678fab commit 952df70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mesh/agents/peer/PeerGroupAgent.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ class PeerGroupAgent implements Agent {
240240
return unique;
241241
}
242242

243+
validateConnectedPeer(ep: Endpoint) : boolean {
244+
let connId = this.findWorkingConnectionId(ep);
245+
return connId !== undefined;
246+
}
247+
243248
// Peer messaging functions, to be used by other local agents:
244249

245250
sendToAllPeers(agentId: AgentId, content: any): number {
@@ -882,7 +887,7 @@ class PeerGroupAgent implements Agent {
882887
this.getNetworkAgent().sendMessage(connId, this.getAgentId(), message);
883888
}
884889

885-
// handle of peer message reception
890+
// handle peer message reception
886891

887892
private onPeerMessage(connId: ConnectionId, sender: Hash, recipient: Hash, peerGroupId: string, agentId: AgentId, message: any) {
888893
let pc = this.connections.get(connId);

0 commit comments

Comments
 (0)