Null out sourceDataLine if the line could not be opened.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 27 May 2013 09:14:46 +0000 (11:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 27 May 2013 20:54:39 +0000 (22:54 +0200)
src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java

index bbf24d1..066588d 100644 (file)
@@ -180,6 +180,7 @@ public class AudioSink implements Sink {
                        metadataUpdated(metadata);
                } catch (LineUnavailableException e) {
                        /* TODO */
+                       sourceDataLine = null;
                        throw new IOException(e);
                }
        }