Commit ecc15f3
committed
Do not wait in PersistenceNotifier when the persist flag is set
When we had a event which caused us to set the persist flag in a
PersistenceNotifier in between wait calls, we will still wait,
potentially not persisting a ChannelManager when we should.
Worse, for wait_timeout, this caused us to always wait up to the
timeout, but then always return true that a persistence is needed.
Instead, we simply check the persist flag before waiting, returning
immediately if it is set.1 parent 69b9799 commit ecc15f3
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4078 | 4078 | | |
4079 | 4079 | | |
4080 | 4080 | | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
4081 | 4085 | | |
4082 | 4086 | | |
4083 | 4087 | | |
| |||
4093 | 4097 | | |
4094 | 4098 | | |
4095 | 4099 | | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
4096 | 4104 | | |
4097 | 4105 | | |
4098 | 4106 | | |
| |||
0 commit comments