Commit b6d49c3
committed
🐛 zb: Make
This seems like the simplest way to address
#1111.
Before this, a `PropertyStream` created when a service wasn't running
would never yield a value, even if the service started later and send
property change signals.
But if a service stopped, and then was restarted, property changes would
be received.
It seems `PropertiesCache::init()` was returning an error, from trying
to call `GetAll` with a destination that doesn't exist.
Instead, let `init()` complete successfully (without populating the
cache), so it returns a `PropertiesChangedStream` which is then
monitored for changes.
It may also be good if it yielded values when a service takes ownership
of the name, but that's a separate issue since it also applies to
service restarts. And an application can handle `OwnerChanged` itself
relatively easily.PropertyStream yield changes if service starts later1 parent 89f54ed commit b6d49c3
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
358 | 366 | | |
359 | 367 | | |
360 | 368 | | |
| |||
0 commit comments