aboutsummaryrefslogtreecommitdiff
path: root/hop.go
diff options
context:
space:
mode:
Diffstat (limited to 'hop.go')
-rw-r--r--hop.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hop.go b/hop.go
index 7dd7dbd..cc1da0c 100644
--- a/hop.go
+++ b/hop.go
@@ -27,6 +27,10 @@ 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())