Make delay before execution command in more efficient way

This commit is contained in:
eleksir
2026-03-31 00:32:02 +03:00
parent 40213ba5c3
commit 8f742709b6

View File

@@ -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 {