Changeset - 2d2c45d9b5b6
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-28 17:52:04

Killed some excess
1 file changed with 4 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -495,13 +495,13 @@ int main(int argc, char *argv[])
 
      blend_frame_watchdog(head);
 

	
 

	
 
      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)
 
	{
 
	  /**
 
	      normaldotcom: learn about ``return by pointer''
 
	  */
 
	  int returnnum = frame_finder(head, &job, &frame); // give framefinder args, framefinder should return job number and frame number somehow
 
@@ -511,20 +511,17 @@ int main(int argc, char *argv[])
 
	      sleep(10);
 
	    }
 
	  else
 
	    /* 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 */
 

	
 

	
 
      distrend_action_free(action);
0 comments (0 inline, 0 general)