downstream: panic when registering twice
This would be a soju bug.
This commit is contained in:
parent
dc58a70794
commit
df4af1856a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user