Skip to content

Commit

Permalink
#1926 Toolkit not initialized error when running headless during APCO…
Browse files Browse the repository at this point in the history
…25 channel start processing request. (#1928)

Co-authored-by: Dennis Sheirer <[email protected]>
  • Loading branch information
DSheirer and Dennis Sheirer authored May 30, 2024
1 parent 737c3fa commit 2af3e99
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ private synchronized void startProcessing(ChannelStartProcessingRequest request)
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));
Expand Down

0 comments on commit 2af3e99

Please sign in to comment.