mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-17 11:07:35 -05:00
#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:
@@ -526,13 +526,13 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
|
|||||||
*/
|
*/
|
||||||
private void stopProcessing(Channel channel) throws ChannelException
|
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);
|
ProcessingChain processingChain = removeProcessingChain(channel);
|
||||||
|
|
||||||
if(processingChain != null)
|
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
|
//Since the processing chain's source will block on stop(), throw it to the thread pool to run
|
||||||
ThreadPool.CACHED.submit(() -> {
|
ThreadPool.CACHED.submit(() -> {
|
||||||
try
|
try
|
||||||
@@ -558,10 +558,6 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new ChannelException("Channel is not currently playing");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user