mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-25 15:59:00 +00:00
syntax cleanup
This commit is contained in:
@@ -126,7 +126,8 @@ CONNECT_RETRY:
|
||||
byteCount, err := tc.conn.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
|
||||
|
||||
Reference in New Issue
Block a user