Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit f46aae4

Browse files
author
Yuncong Zhang
committed
Fix automatic keep alive.
1 parent 022143b commit f46aae4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Runtime/widgets/automatic_keep_alive.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ bool _addClient(KeepAliveNotification notification) {
6767
}
6868
else {
6969
SchedulerBinding.instance.addPostFrameCallback(timeStamp => {
70+
if (!this.mounted) {
71+
return;
72+
}
7073
ParentDataElement childElement1 = this._getChildElement();
7174
D.assert(childElement1 != null);
7275
this._updateParentDataOfChild(childElement1);

0 commit comments

Comments
 (0)