From 8f742709b6d06354c02646714e1f7f4c22bfb6f9 Mon Sep 17 00:00:00 2001 From: eleksir Date: Tue, 31 Mar 2026 00:32:02 +0300 Subject: [PATCH] Make delay before execution command in more efficient way --- internal/lib/spawn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {