Ton if n'est pas nécessaire comme tu mets le boolean à true juste avant https://github.com/Aer041/getLog/blob/e1799dad163b59f636a56031b603dec38bec3ba0/end_download/end_download.cpp#L227