1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

actually, eval {} it anyway so the script can be unloaded even if UNLOAD

fails..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2884 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-08-25 15:52:31 +00:00 committed by cras
parent 7c92a27256
commit c7cfe9f3cb

View File

@ -13,7 +13,7 @@ sub is_static {
}
sub destroy {
$_[0]->UNLOAD() if $_[0]->can('UNLOAD');
eval { $_[0]->UNLOAD() if $_[0]->can('UNLOAD'); };
Symbol::delete_package($_[0]);
}