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:
Denny
2018-07-14 14:44:03 -04:00
parent 8c237be682
commit 20a8f2bb3c
13 changed files with 195 additions and 35 deletions

View File

@@ -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.