Skip to content

Commit

Permalink
Update ratelimiter.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Metalhead33 and coderabbitai[bot] authored Dec 20, 2024
1 parent e1a2b93 commit 5313a67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ratelimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ void EventLoop::loopFunction()
}
for (Command& func : readBuffer)
{
try {
func();
} catch (const std::exception& e) {
g_warning("Command execution failed: %s", e.what());
} catch (...) {
g_warning("Command execution failed with unknown error");
}
}
readBuffer.clear();
}
Expand Down

0 comments on commit 5313a67

Please sign in to comment.