Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
WuJin committed Jul 19, 2024
1 parent 9ea9021 commit c17212a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/net/cdk-net.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ static int _routine(void* param) {
_manager_add_poller(poller);
poller_poll(poller);
_manager_del_poller(poller);

poller_destroy(poller);
}
return 0;
Expand Down Expand Up @@ -352,8 +351,7 @@ void cdk_net_send(cdk_channel_t* channel, void* data, size_t size) {
void cdk_net_close(cdk_channel_t* channel) {
if (thrd_equal(channel->poller->tid, thrd_current())) {
channel_destroy(channel, NULL);
}
else {
} else {
_channel_destroy(channel);
}
}
Expand Down

0 comments on commit c17212a

Please sign in to comment.