Skip to content

Commit

Permalink
Add sleep in server send
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanJarv committed Oct 27, 2021
1 parent ed0c15f commit bbd146f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"net"
"sync"
"time"
)

type Server struct {
Expand Down Expand Up @@ -148,6 +149,8 @@ func (s *Server) sendWorker() {
}(bit)
}
}

time.Sleep(time.Millisecond * 50)

// Opening the start clock port means we're ready for the client to check the bit ports.
err = s.waitForConn(RECEIVE_BASE_PORT)
Expand Down

0 comments on commit bbd146f

Please sign in to comment.