[BUGFIX] no pointer in type case in component
This commit is contained in:
parent
95dded61a1
commit
757e339946
|
@ -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…
Reference in a new issue