Skip to content

Commit

Permalink
fix(plc4go): ensure we are not blocking ourself on test
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 1, 2023
1 parent aff7788 commit 0bafd59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plc4go/internal/cbus/Connection.go
Expand Up @@ -127,7 +127,7 @@ func (c *Connection) GetMessageCodec() spi.MessageCodec {

func (c *Connection) ConnectWithContext(ctx context.Context) <-chan plc4go.PlcConnectionConnectResult {
c.log.Trace().Msg("Connecting")
ch := make(chan plc4go.PlcConnectionConnectResult)
ch := make(chan plc4go.PlcConnectionConnectResult, 1)
go func() {
defer func() {
if err := recover(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion plc4go/internal/opcua/Connection.go
Expand Up @@ -100,7 +100,7 @@ func (c *Connection) GetMessageCodec() spi.MessageCodec {

func (c *Connection) ConnectWithContext(ctx context.Context) <-chan plc4go.PlcConnectionConnectResult {
c.log.Trace().Msg("Connecting")
ch := make(chan plc4go.PlcConnectionConnectResult)
ch := make(chan plc4go.PlcConnectionConnectResult, 1)
go func() {
defer func() {
if err := recover(); err != nil {
Expand Down

0 comments on commit 0bafd59

Please sign in to comment.