fix subscribe channel
This commit is contained in:
@@ -215,17 +215,17 @@ func (rc *RecConn) connect() {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
if !rc.NonVerbose {
|
if !rc.NonVerbose {
|
||||||
log.Printf("Dial: connection was successfully established with %s\n", rc.url)
|
log.Printf("Dial: connection was successfully established with %s\n", rc.url)
|
||||||
}
|
|
||||||
|
|
||||||
if rc.SubscribeHandler == nil {
|
if rc.SubscribeHandler == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := rc.SubscribeHandler(rc); err != nil {
|
if err := rc.SubscribeHandler(rc); err != nil {
|
||||||
log.Fatalf("Dial: connect handler failed with %s", err.Error())
|
log.Fatalf("Dial: connect handler failed with %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Dial: connect handler was successfully established with %s\n", rc.url)
|
log.Printf("Dial: connect handler was successfully established with %s\n", rc.url)
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user