Skip to content

Commit

Permalink
fix repeated closes
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Uzlov <DanilUzlov@yandex.ru>
  • Loading branch information
d-uzlov committed Jun 21, 2023
1 parent 4870ab1 commit 5405eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/networkservice/common/begin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (b *beginServer) Request(ctx context.Context, request *networkservice.Netwo
if closeErr != nil {
log.FromContext(ctx).Errorf("Can't close old connection: %v", closeErr)
}
eventFactoryServer.state = closed
}
}
conn, err = next.Server(withEventFactoryCtx).Request(withEventFactoryCtx, request)
Expand Down

0 comments on commit 5405eb5

Please sign in to comment.