Skip to content
Snippets Groups Projects
Commit c1d66488 authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Fixes a failure to start the audio capture in calls until the Audio Preferences are opened.

parent 4ad62bd0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
}
......
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment