From 095d258d45033d5b56d0f422971b2866c2799437 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 27 May 2013 11:14:46 +0200 Subject: [PATCH] Null out sourceDataLine if the line could not be opened. --- src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.7.4