Skip to content

Commit f6f4b41

Browse files
committed
Update main.go
1 parent 0036d1d commit f6f4b41

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wap/cmd/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,8 @@ func main() {
403403
}
404404
serverMutex.Unlock()
405405

406-
// Signal to start a new server
407-
go func() {
408-
connectedCh <- false
409-
}()
406+
// Signal to start a new server by stopping the current one
407+
stopServer <- struct{}{}
410408
}
411409

412410
break loop2

0 commit comments

Comments
 (0)