public void stubStop() { SPH_Running = false; try { sp.Close(); } catch (Exception) { } SPH_Thread.Join(); }
public void stubStart() { initPort(); sp.Open(); SPH_Running = true; this.SPH_Thread = new Thread(new ThreadStart(this.Read)); SPH_Thread.Start(); }
public void stubStart() { try { initPort(); sp.Open(); SPH_Running = true; this.SPH_Thread = new Thread(new ThreadStart(this.Read)); SPH_Thread.Start(); } catch (Exception) {} }
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) { } }
public void stubStart() { if (this.emv_buttons != RbaButtons.None) { try { initPort(); sp.Open(); SPH_Running = true; this.bufferedCardType = ""; this.sleeper.Reset(); this.SPH_Thread = new Thread(new ThreadStart(this.Read)); SPH_Thread.Start(); } catch (Exception) {} } }