Skip to content

Commit

Permalink
Change command execution to be on separate task
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Oct 4, 2023
1 parent 168009f commit 0318b9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public async Task Handle(IPipelineContext ctx, FieldOnPacketUserChat message)
{
if (message.Message.StartsWith("!") || message.Message.StartsWith("@"))
{
await _commandManager.Process(message.User, message.Message[1..]);
_ = Task.Run(() => _commandManager.Process(message.User, message.Message[1..]));
ctx.Cancel();
}
}
Expand Down

0 comments on commit 0318b9b

Please sign in to comment.