checker: fix start and stop

This commit is contained in:
nemunaire 2020-04-25 23:51:16 +02:00
parent e1ee8d76ee
commit 8c53414477
1 changed files with 3 additions and 1 deletions

View File

@ -36,10 +36,12 @@ func main() {
defer ticker.Stop()
// Launch checker
studentsChecker()
loop:
for {
select {
case <-interrupt:
break
break loop
case <-ticker.C:
studentsChecker()
}