Skip to content

Commit

Permalink
refactor(plc4go/cbus): use fireConnectionError on message codec fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 14, 2022
1 parent b6d94c7 commit ed401b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plc4go/internal/cbus/Connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *Connection) Connect() <-chan plc4go.PlcConnectionConnectResult {
go func() {
err := c.messageCodec.Connect()
if err != nil {
ch <- _default.NewDefaultPlcConnectionConnectResult(nil, err)
c.fireConnectionError(errors.Wrap(err, "Error connecting codec"), ch)
return
}

Expand Down

0 comments on commit ed401b8

Please sign in to comment.