Esempio n. 1
0
func Interrupt() {
	interruptMutex.Lock()
	interrupt = true
	desk.Stop()

	// make sure it's being registered
	time.Sleep(500 * time.Millisecond)
	interruptMutex.Unlock()
	runtime.Gosched()
}
Esempio n. 2
0
func Stop() {
	desk.Stop()
	Interrupt()
	isMoving = false
}