Exemple #1
0
 private void Close()
 {
     try
     {
         readerTask.Abort();
     }
     catch
     {
     }
     readerTask = null;
     //
     try
     {
         x10interface.Close();
     }
     catch
     {
     }
 }
Exemple #2
0
 private void _close()
 {
     lock (_accesslock) {
         try {
             twriter.Abort();
         } catch {
         }
         try {
             treader.Abort();
         } catch {
         }
         twriter = null;
         treader = null;
         //
         try
         {
             _x10interface.Close();
         }
         catch
         {
         }
     }
 }