Skip to content

Commit

Permalink
netrender: fix bad statusline error on render
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Poirier committed Apr 2, 2011
1 parent feb9cb1 commit b9ed721
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions netrender/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,9 +741,6 @@ def do_PUT(self):
elif self.path == "/render":
self.server.stats("", "Receiving render result")

# need some message content here or the slave doesn't like it
self.wfile.write(bytes("foo", encoding='utf8'))

slave_id = self.headers['slave-id']

slave = self.server.getSeenSlave(slave_id)
Expand Down Expand Up @@ -784,6 +781,8 @@ def do_PUT(self):
job.testFinished()

self.send_head()
# need some message content here or the slave doesn't like it
self.wfile.write(bytes("foo", encoding='utf8'))
else: # frame not found
self.send_head(http.client.NO_CONTENT)
else: # job not found
Expand All @@ -794,9 +793,6 @@ def do_PUT(self):
elif self.path == "/thumb":
self.server.stats("", "Receiving thumbnail result")

# need some message content here or the slave doesn't like it
self.wfile.write(bytes("foo", encoding='utf8'))

slave_id = self.headers['slave-id']

slave = self.server.getSeenSlave(slave_id)
Expand All @@ -821,6 +817,9 @@ def do_PUT(self):

del buf

self.send_head()
# need some message content here or the slave doesn't like it
self.wfile.write(bytes("foo", encoding='utf8'))
else: # frame not found
self.send_head(http.client.NO_CONTENT)
else: # job not found
Expand Down

0 comments on commit b9ed721

Please sign in to comment.