syntax cleanup

This commit is contained in:
Joel Wetzell
2026-07-09 22:22:22 -05:00
parent 777f9c43de
commit b86ca20592
9 changed files with 26 additions and 13 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ func (ts *TCPServer) handleClient(client *net.TCPConn) {
client.SetDeadline(time.Now().Add(time.Millisecond * 200))
byteCount, err := client.Read(buffer)
if err != nil {
if opErr, ok := err.(*net.OpError); ok {
opErr, ok := err.(*net.OpError)
if ok {
//NOTE(jwetzell) we hit deadline
if opErr.Timeout() {
continue