diff options
-rw-r--r-- | src/perl/irssi-core.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perl/irssi-core.pl b/src/perl/irssi-core.pl index f9cae269..9ab5953b 100644 --- a/src/perl/irssi-core.pl +++ b/src/perl/irssi-core.pl @@ -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]); } |