Commit 74956ee
committed
Capture POSAggregateModel in card connection Tasks weakly to release if connection hasn't finished
connectReader calls may not finish, for example, when onboarding is shown. If POS is closed, POSAggregateModel is not released.
To solve this issue, capturing self weakly so POSAggregateModel would be released even if the Task hasn't finished1 parent 5d4e4eb commit 74956ee
File tree
1 file changed
+4
-4
lines changed- WooCommerce/Classes/POS/Models
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments