Example #1
0
 public void stubStop()
 {
     SPH_Running = false;
     try {
         sp.Close();
     } catch (Exception) { }
     SPH_Thread.Join();
 }
Example #2
0
 public void stubStop()
 {
     lock (this.syncLock) {
         SPH_Running = false;
     }
     try {
         // wake up the RBA_Stub thread if it's sleeping
         // between sequential messages
         this.sleeper.Set();
         // wait for the thread to finish
         SPH_Thread.Join();
     } catch (Exception) { }
 }