mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-28 04:46:42 -04:00
Implement inactivity timer on Windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user