diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -114,13 +114,14 @@ options_init(argc,argv,&my_cfg, myopts, } if(slavestatus==2){ fprintf(stderr, "Finished frame %d in job %d",framenum,jobnum); - tell_the_server(DISTREN_FINISHED_ASSIGNMENT); // or implement this into the exec_X() functions, but that would be repetative + tell_the_server(DISTREN_REQUEST_DONEFRAME); // or implement this into the exec_X() functions, but that would be repetative slavestatus=0; } - if(slavestatus==0){ - tell_the_server(DISTREN_REQUEST_DONEFRAME); - fprintf(stderr, "Idle. No frames to render."); - } + if(slavestatus==0) + { + fprintf(stderr, "Unreachable code"); + abort(); + } return 0; }