Commit 091d56c
Fix double call to TTS connection disconnect() on reconnect
- Sets the service connection to null when unbindService is called,
instead of in onServiceDisconnected. This avoids a double disconnect
if a call to onServiceConnected is received before a call to
onServiceDisconnected.
- Extended synchronize on runAction error handling and reconnection.
This prevents from reconnecting N times if N>1 threads enter this method
while there's issue with TTS service.
Bug:6993880
Change-Id: I5a387622c6032a18d17fc072029ae6be1a9b8e6c1 parent bf5740e commit 091d56c
1 file changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
1285 | 1286 | | |
1286 | 1287 | | |
1287 | 1288 | | |
| |||
1305 | 1306 | | |
1306 | 1307 | | |
1307 | 1308 | | |
| 1309 | + | |
1308 | 1310 | | |
1309 | 1311 | | |
1310 | 1312 | | |
| |||
1317 | 1319 | | |
1318 | 1320 | | |
1319 | 1321 | | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
1320 | 1331 | | |
1321 | 1332 | | |
1322 | 1333 | | |
1323 | | - | |
1324 | | - | |
| 1334 | + | |
| 1335 | + | |
1325 | 1336 | | |
1326 | 1337 | | |
1327 | 1338 | | |
1328 | 1339 | | |
1329 | 1340 | | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1330 | 1348 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | 1349 | | |
1339 | 1350 | | |
1340 | 1351 | | |
| |||
0 commit comments