downstream: panic when registering twice
This would be a soju bug. git-svn-id: https://svn.yakumo.dev/yakumo.izuru/suika/trunk@788 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
fb0f931644
commit
7aefac7901
@ -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…
x
Reference in New Issue
Block a user