Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions websocket_server.c

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@itay-grudev @klaus-liebler @efuturetoday @Molorius Could you merge this branch? @zmechanic is absolutely correct, as the task handler is being used as a validator to create the task, it must be set to null after deleting the task, as Freertos does not do this itself and otherwise the task will never be started again after have been deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ int ws_server_start() {
int ws_server_stop() {
if(!xtask) return 0;
vTaskDelete(xtask);
xtask = NULL;
return 1;
}

Expand Down