File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/io/github/dsheirer/audio/broadcast Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* *****************************************************************************
3
- * Copyright (C) 2014-2022 Dennis Sheirer
3
+ * Copyright (C) 2014-2024 Dennis Sheirer
4
4
*
5
5
* This program is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU General Public License as published by
@@ -344,14 +344,13 @@ private void createBroadcaster(BroadcastConfiguration broadcastConfiguration)
344
344
deleteBroadcaster (configuredBroadcast );
345
345
}
346
346
347
- AbstractAudioBroadcaster audioBroadcaster = BroadcastFactory .getBroadcaster (broadcastConfiguration ,
347
+ final AbstractAudioBroadcaster audioBroadcaster = BroadcastFactory .getBroadcaster (broadcastConfiguration ,
348
348
mAliasModel , mUserPreferences );
349
349
350
350
if (audioBroadcaster != null )
351
351
{
352
352
configuredBroadcast .setAudioBroadcaster (audioBroadcaster );
353
353
audioBroadcaster .setListener (mBroadcastEventListener );
354
- audioBroadcaster .start ();
355
354
mBroadcasterMap .put (audioBroadcaster .getBroadcastConfiguration ().getId (), audioBroadcaster );
356
355
357
356
int index = mConfiguredBroadcasts .indexOf (configuredBroadcast );
@@ -362,6 +361,7 @@ private void createBroadcaster(BroadcastConfiguration broadcastConfiguration)
362
361
}
363
362
364
363
broadcast (new BroadcastEvent (audioBroadcaster , BroadcastEvent .Event .BROADCASTER_ADD ));
364
+ ThreadPool .CACHED .submit (audioBroadcaster ::start );
365
365
}
366
366
}
367
367
}
You can’t perform that action at this time.
0 commit comments