downstream: panic when registering twice
This would be a soju bug. git-svn-id: file:///srv/svn/repo/suika/trunk@788 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
cd5d76be0e
commit
488107b3d4
@ -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