parent
13d2edb43e
commit
8f7db68d1a
|
@ -157,11 +157,14 @@ public class JavaSoundAudioSource implements AudioSource {
|
|||
if (openStreamRefs.contains(output)) {
|
||||
output.flush();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
if (e instanceof InterruptedIOException && openStreamRefs.isEmpty()) {
|
||||
} catch (InterruptedIOException e) {
|
||||
if (openStreamRefs.isEmpty()) {
|
||||
// task has been ended while writing
|
||||
return;
|
||||
}
|
||||
logger.warn("InterruptedIOException while writing to source pipe: {}",
|
||||
e.getMessage());
|
||||
} catch (IOException e) {
|
||||
logger.warn("IOException while writing to source pipe: {}", e.getMessage());
|
||||
} catch (RuntimeException e) {
|
||||
logger.warn("RuntimeException while writing to source pipe: {}", e.getMessage());
|
||||
|
|
|
@ -146,7 +146,6 @@ public class ScriptTransformationService
|
|||
if (splitString.length != 2) {
|
||||
logger.warn("Parameter '{}' does not consist of two parts for configuration UID {}, skipping.",
|
||||
param, scriptUid);
|
||||
|
||||
} else {
|
||||
executionContext.setAttribute(splitString[0], splitString[1], ScriptContext.ENGINE_SCOPE);
|
||||
}
|
||||
|
|
|
@ -49,7 +49,6 @@ import org.openhab.core.transform.TransformationException;
|
|||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
public class ScriptTransformationServiceTest {
|
||||
private static final String COMPILABLE_SCRIPT_TYPE = "compilableScript";
|
||||
private static final String SCRIPT_TYPE = "script";
|
||||
private static final String SCRIPT_UID = "scriptUid";
|
||||
private static final String SCRIPT = "script";
|
||||
|
|
Loading…
Reference in New Issue