Skip to content

Commit

Permalink
Merge pull request #42 from chrislo27/master
Browse files Browse the repository at this point in the history
Fix wrong receiver for onSpeaking and onNetworkMessage causing stack overflow
  • Loading branch information
JnCrMx authored Jan 18, 2022
2 parents 73a7ae0 + 3cce5e0 commit d88df09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/jcm/discordgamesdk/DiscordEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ public void onLobbyMessage(long lobbyId, long userId, byte[] data)
@Override
public void onSpeaking(long lobbyId, long userId, boolean speaking)
{
listeners.forEach(l->onSpeaking(lobbyId, userId, speaking));
listeners.forEach(l->l.onSpeaking(lobbyId, userId, speaking));
}

@Override
public void onNetworkMessage(long lobbyId, long userId, byte channelId, byte[] data)
{
listeners.forEach(l->onNetworkMessage(lobbyId, userId, channelId, data));
listeners.forEach(l->l.onNetworkMessage(lobbyId, userId, channelId, data));
}

@Override
Expand Down

0 comments on commit d88df09

Please sign in to comment.