Skip to content

Commit

Permalink
this should workgit clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 10, 2024
1 parent 41108a1 commit 7c75bbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,8 @@ static int s_socket_write_fn(
if (!nw_socket->currently_connected) {
// As the socket is not open, we no longer have access to the event loop to schedule tasks
// directly execute the written callback instead of scheduling a task.
s_schedule_write_fn(socket, 0, 0, user_data, written_fn);
// At this moment, we no longer has access to socket.
written_fn(NULL, 0, 0, user_data);
goto nw_socket_release;
}

Expand Down

0 comments on commit 7c75bbf

Please sign in to comment.