# HG changeset patch # User ethanzonca # Date 2009-07-28 17:52:04 # Node ID 2d2c45d9b5b6281d8c88fd5c2a2b2883d9db7c2c # Parent 31771fb6594ef0028bbf89e8f4970fbaa8d23384 Killed some excess diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -498,7 +498,7 @@ int main(int argc, char *argv[]) struct frameset *frame; struct blendjob *job; - /* If the client is idle (meaning a client without the "busy" status connected via ssh) */ + /* If the client is idle (meaning a client without the "busy" status connected via ssh), all clients should be idle by default. */ if(clientstatus == CLIENTSTATUS_IDLE) { /** @@ -514,14 +514,11 @@ int main(int argc, char *argv[]) /* returnnum == 0 */ remotio_send_to_client(frame->num, job->jobnum); // Did you actually make this function, ohnobinki? --normaldotcom } + /* If the client states that they finished the frame */ if(clientsays == DISTREN_REQUEST_DONEFRAME){ - clientstatus = CLIENTSTATUS_IDLE; - finish_frame(jobnum, framenumprevious); // make it finish the previous frame or something. - int returnnum = frame_finder(head, &job, &frame); - if(returnnum){ - fprintf(stderr,"No frames are available to render at this time"); - } + clientstatus = CLIENTSTATUS_IDLE; // Sets the client back to idle + finish_frame(jobnum, framenumprevious); // make it finish the previous frame or something, why framenumprevios? Is that the whole linked list thing coming in? } /* End Somewhat Pseudo-code */