use of ch.cyberduck.core.threading.DisconnectBackgroundAction in project cyberduck by iterate-ch.
the class BrowserController method disconnect.
/**
* Unmount this session
*/
private void disconnect(final Runnable disconnected) {
final InfoController c = InfoControllerFactory.get(this);
if (null != c) {
c.window().close();
}
this.background(new DisconnectBackgroundAction(this, pool) {
@Override
public void cleanup() {
super.cleanup();
pasteboard.clear();
window.setDocumentEdited(false);
disconnected.run();
}
});
}
Aggregations