Commit 8aea118
committed
bluetoothHandler: fix segfault with early starting
This commit is trying to fix an early segfault.
If the bluetooth stack is not ready, then the `Powered` value is null.
Calling the `set_value` in this stage is causing `Segmentation fault`.
This was leading to problems with automatic AA start on the Pi,
so it was often necessary to start it manually afterwards:
`/etc/init.d/S93aawgd start` (the process was not running)1 parent 84ca61d commit 8aea118
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
0 commit comments