Skip to content

Commit

Permalink
Fix a data race
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Jul 18, 2019
1 parent 67663d7 commit ea79b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (tm *Manager) acceptTransport(ctx context.Context, factory Factory) (*Manag
entry, err := settlementResponderHandshake().Do(tm, tr, 30*time.Second)
if err != nil {
go func() {
if err = tr.Close(); err != nil {
if err := tr.Close(); err != nil {
tm.Logger.Warnf("Failed to close transport: %s", err)
}
}()
Expand Down

0 comments on commit ea79b8e

Please sign in to comment.