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