mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-10 15:47:25 -05:00
Fully implements application shutdown procedure that is invoked when the
user closes the the main gui window or invokes exit from the file menu.
This commit is contained in:
@@ -363,6 +363,22 @@ public class ChannelProcessingManager implements ChannelEventListener
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops all currently processing channels to prepare for shutdown.
|
||||
*/
|
||||
public void shutdown()
|
||||
{
|
||||
mLog.debug("Stopping Channels ...");
|
||||
for(Channel channel: mChannelModel.getChannels())
|
||||
{
|
||||
if(channel.isProcessing())
|
||||
{
|
||||
mLog.debug("Stopping channel: " + channel.toString());
|
||||
stopProcessing(channel, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a message listener that will be added to all channels to receive
|
||||
* any messages.
|
||||
|
||||
Reference in New Issue
Block a user