Skip to content

Commit 10b13c8

Browse files
committed
feat: add synchronized keyword
1 parent f8dc647 commit 10b13c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/voicechat/DynamicVoiceChat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void handleVoiceChannelJoin(GuildVoiceUpdateEvent event,
7979
}
8080
}
8181

82-
private void handleVoiceChannelLeave(AudioChannelUnion channelLeft) {
82+
private synchronized void handleVoiceChannelLeave(AudioChannelUnion channelLeft) {
8383
long channelId = channelLeft.getIdLong();
8484

8585
if (Boolean.TRUE.equals(deletedChannels.getIfPresent(channelId))) {

0 commit comments

Comments
 (0)