kopia lustrzana https://git.sr.ht/~michalr/hswro-alarm-bot
Fix possible lock
rodzic
bec0241d9c
commit
3c3636637e
6
main.go
6
main.go
|
@ -40,8 +40,10 @@ type RealSleeper struct {
|
|||
}
|
||||
|
||||
func (self RealSleeper) Sleep(ch chan<- interface{}) {
|
||||
time.Sleep(self.duration)
|
||||
ch <- nil
|
||||
go func() {
|
||||
time.Sleep(self.duration)
|
||||
ch <- nil
|
||||
}()
|
||||
}
|
||||
|
||||
func getCmdLineParams(logger *log.Logger) (string, []int64) {
|
||||
|
|
Ładowanie…
Reference in New Issue