Skip to content

Commit

Permalink
extend changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jan 23, 2025
1 parent 6078ca6 commit 9ad13ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

# Fixed data race in EphemeralContractor related to V2FileContractElement.
3 changes: 3 additions & 0 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,12 @@ func (s *Syncer) Close() error {

// Connect forms an outbound connection to a peer.
func (s *Syncer) Connect(ctx context.Context, addr string) (*Peer, error) {
s.mu.Lock()
if s.closed {
s.mu.Unlock()
return nil, ErrClosed
}
s.mu.Unlock()
conn, err := (&net.Dialer{}).DialContext(ctx, "tcp", addr)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9ad13ec

Please sign in to comment.