roleoroleo / onvif_simple_server

Light implementation of an onvif server intended for use in resource-constrained devices
GNU General Public License v3.0
20 stars 7 forks source link

reboot doesn't work; fix pthread #8

Closed gtxaspec closed 3 weeks ago

gtxaspec commented 4 weeks ago

use pthread_join(reboot_pthread, NULL); , so it waits for the reboot_pthread to complete before proceeding. This ensures that the main thread does not exit prematurely,

roleoroleo commented 3 weeks ago

Thank you for your pr.