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 a931f91..587adb9 100644
--- a/hop.go
+++ b/hop.go
@@ -91,6 +91,10 @@ func (cc *ClientConn) HopRaw(serverName string) error {
return ErrNoSuchServer
}
+ if _, ok := cc.denyPools[newSrv.MediaPool]; ok {
+ return ErrNewMediaPool
+ }
+
if newSrv.poolAdded.After(cc.created) {
return ErrNewMediaPool
}