Fix problem when background settings change multiple times in rapid succession
The code that cleaned up when a background actor was destroyed tried to access the Background as backgroundActor.background._delegate but when the destroy signal is emitted, the MetaBackgroundActor was already disposed and backgroundActor.background NULL.
This commit is contained in:
parent
73977795a6
commit
8096e71c53
@ -701,7 +701,7 @@ const BackgroundManager = new Lang.Class({
|
||||
background.disconnect(changeSignalId);
|
||||
|
||||
if (backgroundActor.loadedSignalId)
|
||||
backgroundActor.background._delegate.disconnect(backgroundActor.loadedSignalId);
|
||||
background.disconnect(backgroundActor.loadedSignalId);
|
||||
}));
|
||||
|
||||
return backgroundActor;
|
||||
|
Loading…
Reference in New Issue
Block a user