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:
contact 2022-03-03 07:33:10 +00:00
parent fb0f931644
commit 7aefac7901

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 {