diff --git a/ConnectionState.go b/ConnectionState.go index d7c0cd1..35e13b1 100644 --- a/ConnectionState.go +++ b/ConnectionState.go @@ -25,7 +25,7 @@ func (cs ConnectionState) Format() string { } } -func CheckIsNetTimeout(err error) bool { +func checkIsNetTimeout(err error) bool { if err == nil { return false } diff --git a/HubConnection.go b/HubConnection.go index 7459416..dcfe80d 100644 --- a/HubConnection.go +++ b/HubConnection.go @@ -324,7 +324,7 @@ func (this *HubConnection) worker() { this.conn.SetReadDeadline(time.Now().Add(SEND_KEEPALIVE_EVERY)) nbytes, err = this.conn.Read(readBuff) - if CheckIsNetTimeout(err) { + if checkIsNetTimeout(err) { // No data before read deadline err = nil