Skip to content

Commit

Permalink
Fix hang on application exit
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer committed Oct 31, 2023
1 parent a3fba18 commit 0811103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/cl_frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ void cl_fe_network_post(const char *url, char *data,
response.error_code = response_code;
response.error_msg = "Network error";
}
callback(response);
if (callback)
callback(response);
}

typedef struct
Expand Down
3 changes: 1 addition & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ ON_APPLICATION_START()
#endif
}

ON_APPLICATION_REQUESTS_EXIT()
ON_APPLICATION_ENDS()
{
if (session.ready)
cl_network_post("close", NULL, NULL);
//OSJoinThread(&thread, nullptr);
}

0 comments on commit 0811103

Please sign in to comment.