From 5713b58c7cc5245eaa262a98272f5ed0dfe5f751 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 29 Nov 2016 19:43:32 +1300 Subject: [PATCH] don't export checkIsNetTimeout --- ConnectionState.go | 2 +- HubConnection.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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