aboutsummaryrefslogtreecommitdiff
path: root/hop.go
diff options
context:
space:
mode:
Diffstat (limited to 'hop.go')
-rw-r--r--hop.go23
1 files changed, 2 insertions, 21 deletions
diff --git a/hop.go b/hop.go
index 4d8ac77..de1774a 100644
--- a/hop.go
+++ b/hop.go
@@ -28,27 +28,8 @@ func (cc *ClientConn) Hop(serverName string) (err error) {
}
}()
- if err = cc.HopRaw(serverName); err != nil {
- if errors.Is(err, ErrNoSuchServer) || errors.Is(err, ErrNewMediaPool) {
- return err
- }
-
- cc.Log("<-", err)
- cc.SendChatMsg("Could not switch servers, triggering fallback. Error:", err.Error())
-
- for _, srvName := range FallbackServers(serverName) {
- if err = cc.HopRaw(srvName); err != nil {
- cc.Log("<-", err)
- cc.SendChatMsg("Could not connect, continuing fallback. Error:", err.Error())
- }
-
- return nil
- }
-
- return err
- }
-
- return nil
+ err = cc.HopRaw(serverName)
+ return
}
// HopGroup connects the ClientConn to the specified server group