2
0
This commit is contained in:
Lucas Löffel
2019-04-22 14:15:02 +02:00
parent 01a69ab474
commit 935b7535be
+4
View File
@@ -332,6 +332,10 @@ func (rc *RecConn) keepAlive() {
defer ticker.Stop()
for {
if (!rc.IsConnected()) {
continue;
}
rc.writeControlPingMessage()
<-ticker.C
if time.Now().Sub(keepAliveResponse.getLastResponse()) > rc.getKeepAliveTimeout() {