#1186 removes error logging that indicates that a channel cannot be stopped because it doesn't exist. This happens when a second successive attempt to stop a channel fails to find the channel because the first attempt has already removed the channel from the list. (#1187)

Co-authored-by: Denny Sheirer <sheirerd@ainfosec.com>
This commit is contained in:
Denny Sheirer
2022-03-21 19:09:49 -04:00
committed by GitHub
parent 775ae00861
commit af8cc0255e

View File

@@ -526,13 +526,13 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
*/
private void stopProcessing(Channel channel) throws ChannelException
{
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(false));
ProcessingChain processingChain = removeProcessingChain(channel);
if(processingChain != null)
{
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(false));
//Since the processing chain's source will block on stop(), throw it to the thread pool to run
ThreadPool.CACHED.submit(() -> {
try
@@ -558,10 +558,6 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
}
});
}
else
{
throw new ChannelException("Channel is not currently playing");
}
}
/**