From: David ‘Bombe’ Roden Date: Mon, 27 May 2013 09:14:46 +0000 (+0200) Subject: Null out sourceDataLine if the line could not be opened. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=095d258d45033d5b56d0f422971b2866c2799437;p=sonitus.git Null out sourceDataLine if the line could not be opened. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java b/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java index bbf24d1..066588d 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java +++ b/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java @@ -180,6 +180,7 @@ public class AudioSink implements Sink { metadataUpdated(metadata); } catch (LineUnavailableException e) { /* TODO */ + sourceDataLine = null; throw new IOException(e); } }