Commit 079976c
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 7a05710 commit 079976c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
| |||
0 commit comments