pendingSockets.clear();
}
synchronized (channels) {
for (Iterator it = channels.values().iterator(); it.hasNext();) {
final IChannel channel = (IChannel) it.next();
// dispose the channel in a SafeRunner so exceptions don't
// prevent us from disposing other channels
SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
channel.dispose();
}
public void handleException(Throwable t) {
log(new Status(IStatus.ERROR, Util.PLUGIN_ID,
"Error disposing channel: " + channel, t)); //$NON-NLS-1$