Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Commit 36f4e7a

Browse files
author
Arun Gupta
committed
Comparing to "peer" instead of "peers"
Former-commit-id: 84f790b7bd297bf27c22ed67b58b2e9ad3c658b7
1 parent a834906 commit 36f4e7a

File tree

1 file changed

+1
-1
lines changed
  • lab/solution/movieplex7/src/main/java/org/glassfish/movieplex7/chat

1 file changed

+1
-1
lines changed

lab/solution/movieplex7/src/main/java/org/glassfish/movieplex7/chat/ChatServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void onClose(Session peer) {
7171
@OnMessage
7272
public void message(String message, Session client) throws IOException, EncodeException {
7373
for (Session peer : peers) {
74-
if (!peers.equals(client))
74+
if (!peer.equals(client))
7575
peer.getBasicRemote().sendObject(message);
7676
}
7777
}

0 commit comments

Comments
 (0)