handle some special cases (disconnect during some moments) and fix "bind adress already in use" error

This commit is contained in:
2025-03-18 14:11:37 +01:00
parent 0103c22882
commit 8f60baded0
9 changed files with 62 additions and 24 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
/* Updated: 2025/03/17 14:54:43 by tomoron ### ########.fr */
/* Updated: 2025/03/18 13:36:35 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,7 +28,7 @@ int main(int argc, char **argv)
return (1);
Scene scene(args.getSceneName());
if (scene.fail())
if (scene.error())
return (1);
Window window(&scene, WIDTH, HEIGHT, "RT_GPU", 0, args);