[googletts] Avoid UnsupportedOperationException during dispose (#15305)
Fix #15303 It is not allowed to clear an unmodified hash set. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
@@ -136,8 +136,8 @@ public class GoogleTTSService extends AbstractCachedTTSService {
|
|||||||
@Deactivate
|
@Deactivate
|
||||||
protected void dispose() {
|
protected void dispose() {
|
||||||
apiImpl.dispose();
|
apiImpl.dispose();
|
||||||
audioFormats.clear();
|
audioFormats = new HashSet<>();
|
||||||
allVoices.clear();
|
allVoices = new HashSet<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user