#1926 Toolkit not initialized error when running headless during APCO25 channel start processing request. (#1928)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-05-30 03:48:04 -04:00
committed by GitHub
parent 737c3faacc
commit 2af3e992a1

View File

@@ -395,7 +395,10 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
if(source == null)
{
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(false));
if(!GraphicsEnvironment.isHeadless())
{
Platform.runLater(() -> channel.setProcessing(false));
}
mChannelEventBroadcaster.broadcast(new ChannelEvent(channel,
ChannelEvent.Event.NOTIFICATION_PROCESSING_START_REJECTED, TUNER_UNAVAILABLE_DESCRIPTION));