Skip to content

Commit

Permalink
fix(server): concurrency issue on event occurences
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Oct 7, 2019
1 parent d6e3f23 commit 59e1f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=0.4.3
mod_version=0.4.4

minecraft_version=1.12.2
forge_version=14.23.3.2655
Expand Down
Expand Up @@ -64,7 +64,8 @@ public void handleEvent(EventArguments args) {
}

// Queue incoming event arguments
getQueue(args.streamerNickname).queue(() -> eventNode.process(args));
getQueue(args.streamerNickname).queue(() ->
TwitchSpawn.SERVER.addScheduledTask(() -> eventNode.process(args)));
TwitchSpawn.LOGGER.info("Queued handler for {} event.", eventKeyword);
}

Expand Down

0 comments on commit 59e1f53

Please sign in to comment.