Commit 0d76997
committed
[chromecast] Do not cast the background discovery setting to String
The value comes back as a Boolean when the setting is written via REST, so
@Modified throws ClassCastException, SCR swallows it and background discovery
keeps running while the config reads as false. Accept either type, and make the
field volatile since it is read from the discovery threads.
Signed-off-by: Jason Hubbard <jasonahubbard@gmail.com>1 parent bf60793 commit 0d76997
1 file changed
Lines changed: 12 additions & 5 deletions
File tree
- bundles/org.openhab.binding.chromecast/src/main/java/org/openhab/binding/chromecast/internal/discovery
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
0 commit comments