Skip to content

Commit

Permalink
Item14237: Fixed extra destruction time error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed May 23, 2018
1 parent 136b32e commit 59d58d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ sub DEMOLISH {
my $ext = ref($this);

#say STDERR "++++ DEMOLISHING $ext";
#say STDERR "THIS->APP:", $this->app // '*undef*';

unless ($in_global_desctruction) {
unless ( $in_global_desctruction || !defined $this->app ) {

#say STDERR "++++ Not in global destruction";
$this->app->extMgr->deregisterExtension( ref($this) );
Expand Down

0 comments on commit 59d58d2

Please sign in to comment.