remove test code

This commit is contained in:
sawka
2022-12-05 15:45:26 -08:00
parent ad2cab595d
commit 39e5e6c729
-8
View File
@@ -327,18 +327,10 @@ func RunServer() (int, error) {
}()
defer ticker.Stop()
readLoopDoneCh := make(chan bool)
go func() {
defer close(readLoopDoneCh)
server.runReadLoop()
}()
go func() {
time.Sleep(5 * time.Second)
respPk := packet.MakeResponsePacket("NA", make(chan bool))
server.Sender.SendPacket(respPk)
}()
select {
case <-readLoopDoneCh:
break