Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a1e3f04

Browse files
committedOct 4, 2024·
server: use t.join() instead of infinite loop
1 parent 533da39 commit a1e3f04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎examples/server/main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,7 @@ int main(int argc, const char* argv[]) {
810810

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

813-
while (1)
814-
;
813+
t.join();
815814

816815
free_sd_ctx(sd_ctx);
817816

0 commit comments

Comments
 (0)
Please sign in to comment.