diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -215,7 +215,7 @@ if(gotframe ==1) // Consider placing the following in the exec_blender() function while(busy == 1){ - tell_the_server("DISTREN_REQUEST_PROGRESS"); + tell_the_server(DISTREN_REQUEST_PROGRESS); fprintf(stderr, "Rendering frame %d in job %d...",framenum,jobnum); sleep(5); // or not... this should be more event-driven, but should still give a heartbeat to the server } @@ -228,8 +228,7 @@ if(gotframe ==1) char *outputurl; _distren_asprintf(&outputurl, "http://protofusion.org/distren/stor/job%d/",jobnum); // Aggregates the output url curlpost(pathtoOutput, urltoOutput); // uploads (HTML POST) the output at outputpath to the server at outputurl - tell_the_server("DISTREN_REQUEST_DONEFRAME" - ); // Tells the server that it's finished rendering this frame + tell_the_server(DISTREN_REQUEST_DONEFRAME); // Tells the server that it's finished rendering this frame busy=0; // Slave now becomes idle, doesn't need to tell the server anything, ssh handles this. }