protected override void OnConnectionClosed() { if (User != null) { User.Status = UserStatus.Offline; } if (Users != null && Users.Count > 0) { Users.Clear(); } if (ServerLibraries != null && ServerLibraries.Count > 0) { ServerLibraries.Clear(); } CanLock = false; if (ftpMgr != null && ftpMgr.Connected) { try { ftpMgr.Close(); } catch (Exception e) { Log.Error("ftpMgr close exception:" + e.Message); } ftpMgr = null; } if (openAsyncFuture != null) { openAsyncFuture.Close(); } openAsyncFuture = null; base.OnConnectionClosed(); }
protected override IAsyncFuture CreateOpenFuture() { openAsyncFuture = new OpenAsyncFuture(completedCallback, this); return(openAsyncFuture); }