Merge pull request #22 from genofire/fix-component

[BUGFIX] no pointer in type case in component
disco_info_form
Mickaël Rémond 5 years ago committed by GitHub
commit 0f6ff41792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,9 +62,9 @@ func (c *Component) Connect(connStr string) error {
}
switch v := val.(type) {
case *StreamError:
case StreamError:
return errors.New("handshake failed " + v.Error.Local)
case *Handshake:
case Handshake:
return nil
default:
return errors.New("unexpected packet, got " + v.Name())

Loading…
Cancel
Save