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:
contact 2022-03-03 07:33:10 +00:00
parent cd5d76be0e
commit 488107b3d4

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 {