downstream: panic when registering twice

This would be a soju bug.
This commit is contained in:
Simon Ser 2022-03-03 08:33:10 +01:00
parent dc58a70794
commit df4af1856a

View file

@ -1250,7 +1250,7 @@ func (dc *downstreamConn) authenticate(ctx context.Context, username, password s
func (dc *downstreamConn) register(ctx context.Context) error {
if dc.registered {
return fmt.Errorf("tried to register twice")
panic("tried to register twice")
}
if dc.sasl != nil {