Fix issue where stop
could stopped already stopped timers
This commit is contained in:
parent
35d6d035fa
commit
f0c8bcb408
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ImportPath": "git.bullercodeworks.com/brian/gime",
|
||||
"GoVersion": "go1.9",
|
||||
"GoVersion": "go1.10",
|
||||
"GodepVersion": "v79",
|
||||
"Deps": [
|
||||
{
|
||||
|
@ -112,9 +112,9 @@ func cmdStopTimer(args []string) int {
|
||||
fmt.Println("Error parsing timer id:", err.Error())
|
||||
return 1
|
||||
}
|
||||
tmr, _, err = findTimerById(timerId)
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
tmr = actTimers.Get(timerId)
|
||||
if timerId >= actTimers.Length() || timerId < 0 || tmr == nil {
|
||||
fmt.Println("Error finding timer with id:", timerId)
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user