Skip to content

Commit

Permalink
server: use t.join() instead of infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Oct 4, 2024
1 parent 533da39 commit a1e3f04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,7 @@ int main(int argc, const char* argv[]) {

printf("Server listening at %s:%d\n", params.host.c_str(), params.port);

while (1)
;
t.join();

free_sd_ctx(sd_ctx);

Expand Down

0 comments on commit a1e3f04

Please sign in to comment.