Skip to content

Commit

Permalink
ipc: fix in connect() where peer wasn't being assigned to self
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 7, 2024
1 parent 0664e51 commit cacc7b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ipc/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ int connect(Thread *t, int sd, const struct sockaddr *addr, socklen_t len) {
socketLock();
peer->backlog[peer->backlogCount] = self;
peer->backlogCount++;
self->peer = peer;
socketRelease();
return 0;
}
Expand Down

0 comments on commit cacc7b5

Please sign in to comment.