Skip to content

Commit a1e3f04

Browse files
committed
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

Lines changed: 1 addition & 2 deletions
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)