Esempio n. 1
0
 internal void CommandErrorControl(object client, FTPErrorEventArgs e)
 {
     if (CommandError != null)
         CommandError(this, e);
 }
Esempio n. 2
0
 /// <summary>
 /// Test if the connection is still alive.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">Arguments</param>
 private void ftpClient_CommandError(object sender, FTPErrorEventArgs e)
 {
     isTransferringData = false;  // prevents close hanging while waiting for cancel
     log.Error("Command error", e.Exception);
     if (!ActiveClient.IsConnected)
     {
         try
         {
             Close(true, e.Exception);
         }
         catch
         {
         }
     }
 }