Implement inactivity timer on Windows

This commit is contained in:
2025-04-12 19:53:02 -04:00
parent 1f6c25f541
commit a5108bc6cc
2 changed files with 21 additions and 8 deletions
+1
View File
@@ -47,6 +47,7 @@ func Run() {
if err != nil {
if err.(net.Error).Timeout() {
log.Println("Three minutes have passed without any connections. Exiting...")
listener.Close()
os.Exit(0)
}
log.Printf("Accept error: %v", err)