diff --git a/src/org/jitsi/impl/neomedia/ProcessorUtility.java b/src/org/jitsi/impl/neomedia/ProcessorUtility.java index 9c4e73e965679f0965f828d9def6c51d95cba049..9f73ac0f4f7ee658e9d677f47339eeab7b99d520 100644 --- a/src/org/jitsi/impl/neomedia/ProcessorUtility.java +++ b/src/org/jitsi/impl/neomedia/ProcessorUtility.java @@ -15,7 +15,7 @@ * * @author Emil Ivov * @author Ken Larson - * @author Lubomir Marinov + * @author Lyubomir Marinov */ public class ProcessorUtility implements ControllerListener @@ -140,15 +140,22 @@ else if (state == Processor.Realized) } catch (InterruptedException ie) { - logger - .warn( - "Failed while waiting on Processor " + logger.warn( + "Interrupted while waiting on Processor " + processor + " for state " + state, ie); - processor.removeControllerListener(this); - return false; + /* + * XXX It is not really clear what we should do. It seems + * that an InterruptedException may be thrown and the + * Processor will still work fine. Consequently, we cannot + * fail here. Besides, if the Processor fails, it will tell + * us with a ControllerEvent anyway and we will get out of + * the loop. + */ +// processor.removeControllerListener(this); +// return false; } } } diff --git a/src/org/jitsi/impl/neomedia/device/PortAudioSystem.java b/src/org/jitsi/impl/neomedia/device/PortAudioSystem.java index 79c55c48f46443a6ff80c5ab09d05b0777b47549..41fad820066ff951977841b9a3f847550539a977 100644 --- a/src/org/jitsi/impl/neomedia/device/PortAudioSystem.java +++ b/src/org/jitsi/impl/neomedia/device/PortAudioSystem.java @@ -558,7 +558,7 @@ public String toString() */ private static void waitForPaOpenStream() { - boolean interrupted = true; + boolean interrupted = false; while (paOpenStream > 0) { @@ -581,7 +581,7 @@ private static void waitForPaOpenStream() */ private static void waitForPaUpdateAvailableDeviceList() { - boolean interrupted = true; + boolean interrupted = false; while (paUpdateAvailableDeviceList > 0) {