|
|
@@ -835,7 +835,10 @@ func (h *Hub) ConnectToServerX(channel string, force bool, host *HostInfo) {
|
|
|
log.Println("[ConnectToServerX] not connect host func found")
|
|
|
return
|
|
|
}
|
|
|
- host, _ = h.connectHostFunc(channel, Direct)
|
|
|
+ host, err := h.connectHostFunc(channel, Direct)
|
|
|
+ if err != nil {
|
|
|
+ log.Println("[ConnectToServerX] connectHostFunc:", err)
|
|
|
+ }
|
|
|
if host == nil {
|
|
|
log.Println("[ConnectToServerX] not host found for channel:", channel)
|
|
|
return
|