summaryrefslogtreecommitdiff
path: root/lib/Multi
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
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')
-rw-r--r--lib/Multi/Anime.pm1
-rw-r--r--lib/Multi/Core.pm1
-rw-r--r--lib/Multi/Image.pm1
-rw-r--r--lib/Multi/RG.pm1
-rw-r--r--lib/Multi/Sitemap.pm1
5 files changed, 5 insertions, 0 deletions
diff --git a/lib/Multi/Anime.pm b/lib/Multi/Anime.pm
index bc01d26e..03134925 100644
--- a/lib/Multi/Anime.pm
+++ b/lib/Multi/Anime.pm
@@ -100,6 +100,7 @@ sub shutdown {
$_[KERNEL]->delay('check_anime');
$_[KERNEL]->delay('nextcmd');
$_[KERNEL]->delay('receivepacket');
+ $_[KERNEL]->alias_remove('anime');
}
diff --git a/lib/Multi/Core.pm b/lib/Multi/Core.pm
index 4d505d14..c95947fb 100644
--- a/lib/Multi/Core.pm
+++ b/lib/Multi/Core.pm
@@ -86,6 +86,7 @@ sub sig_shutdown {
sub shutdown {
$_[KERNEL]->call(core => log => 'Shutting down (%s)', $_[ARG1]);
$_[KERNEL]->post(pg => 'shutdown');
+ $_[KERNEL]->alias_remove('core');
}
diff --git a/lib/Multi/Image.pm b/lib/Multi/Image.pm
index a9ed4b9e..f947bf7d 100644
--- a/lib/Multi/Image.pm
+++ b/lib/Multi/Image.pm
@@ -46,6 +46,7 @@ sub shutdown {
$_[KERNEL]->post(pg => unlisten => 'coverimage', 'screenshot');
$_[KERNEL]->delay('cv_check');
$_[KERNEL]->delay('scr_check');
+ $_[KERNEL]->alias_remove('image');
}
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');
}
diff --git a/lib/Multi/Sitemap.pm b/lib/Multi/Sitemap.pm
index 64313e45..175b170a 100644
--- a/lib/Multi/Sitemap.pm
+++ b/lib/Multi/Sitemap.pm
@@ -39,6 +39,7 @@ sub _start {
sub shutdown {
$_[KERNEL]->delay('check_age');
+ $_[KERNEL]->alias_remove('sitemap');
}