diff options
Diffstat (limited to 'watchdog.go')
| -rw-r--r-- | watchdog.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/watchdog.go b/watchdog.go index e1648c7..9b136f4 100644 --- a/watchdog.go +++ b/watchdog.go @@ -21,7 +21,7 @@ import ( // the delay, then the scan will run right away, but if // you check the checkbox twice in 5 seconds, it won't // rerun until the delay again -func (r *RepoList) Watchdog() { +func (r *RepoList) Watchdog(f func()) { var delay int = 99 var i int = delay MyTicker(1*time.Second, "newScan()", func() { @@ -42,6 +42,7 @@ func (r *RepoList) Watchdog() { } i = 0 r.ScanRepositories() + f() }) } |
