Fixes a NullPointerException in PortAudioRenderer#close(). Reported by Werner Dittmann.

cusax-fix
Lyubomir Marinov 16 years ago
parent 70fd2c5e12
commit 29376076bb

@ -192,9 +192,10 @@ public synchronized void open()
*/
public synchronized void close()
{
stop();
if (stream != null)
{
stop();
try
{
stream.close();
@ -203,6 +204,7 @@ public synchronized void close()
{
logger.error("Failed to close stream", paex);
}
}
}
/**

Loading…
Cancel
Save