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",
|
"ImportPath": "git.bullercodeworks.com/brian/gime",
|
||||||
"GoVersion": "go1.9",
|
"GoVersion": "go1.10",
|
||||||
"GodepVersion": "v79",
|
"GodepVersion": "v79",
|
||||||
"Deps": [
|
"Deps": [
|
||||||
{
|
{
|
||||||
|
@ -112,9 +112,9 @@ func cmdStopTimer(args []string) int {
|
|||||||
fmt.Println("Error parsing timer id:", err.Error())
|
fmt.Println("Error parsing timer id:", err.Error())
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
tmr, _, err = findTimerById(timerId)
|
tmr = actTimers.Get(timerId)
|
||||||
if err != nil {
|
if timerId >= actTimers.Length() || timerId < 0 || tmr == nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println("Error finding timer with id:", timerId)
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user