summaryrefslogtreecommitdiff
path: root/lib/Multi/RG.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-23 20:19:12 +0200
committerYorhel <git@yorhel.nl>2009-07-23 20:19:12 +0200
commitc43b23e86e59cf253a904f54313c1ec72b2470f5 (patch)
tree604d067722ff98326657a55bcc02bf052303401f /lib/Multi/RG.pm
parent91b95b0bbf17a5756e5a7da4649f82f5a9184975 (diff)
Remove session aliases in shutdown handler
This isn't really necessary when shutting down the entire process, but it is for the individual session to shut down. This will make it possible to load/unload/reload Multi modules on demand without restarting the process.
Diffstat (limited to 'lib/Multi/RG.pm')
-rw-r--r--lib/Multi/RG.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Multi/RG.pm b/lib/Multi/RG.pm
index 65587e93..e427caf2 100644
--- a/lib/Multi/RG.pm
+++ b/lib/Multi/RG.pm
@@ -46,6 +46,7 @@ sub _start {
sub shutdown {
$_[KERNEL]->delay('check_rg');
$_[KERNEL]->post(pg => unlisten => 'relgraph');
+ $_[KERNEL]->alias_remove('rg');
}