diff --git a/internal/lib/spawn.go b/internal/lib/spawn.go index df4160e..d9c45cd 100644 --- a/internal/lib/spawn.go +++ b/internal/lib/spawn.go @@ -13,7 +13,7 @@ import ( // Spawner forks and execs given program, and also detaches form its control tty. func (c *MyConfig) Spawner() { for prg := range c.Channels.RunChan { - <-time.After(25 * time.Millisecond) + time.Sleep(25 * time.Millisecond) devnullR, err := os.Open(os.DevNull) if err != nil {