Skip to content

Commit

Permalink
Add missing core.memory : GC import
Browse files Browse the repository at this point in the history
  • Loading branch information
zorael committed Feb 26, 2025
1 parent 5d247e7 commit 396c771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/kameloso/plugins/admin/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,8 @@ void onBusMessage(
else
{
case "gc.collect":
import core.memory : GC;

GC.collect();
if (plugin.state.coreSettings.headless) return
logger.info("Garbage collected.");
Expand Down

0 comments on commit 396c771

Please sign in to comment.