Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2011-06-29 23:46:48 +0400
committerMartin Poirier <theeth@yahoo.com>2011-06-29 23:46:48 +0400
commita82f4c03e749ada328b6031cfd085cab8f38f51c (patch)
treeda95d9e604153de1c2889ca65240e33d797a4c73 /netrender/slave.py
parent20c83a9d7c8225bc83e4be639af01a35e4fc289b (diff)
netrender
better stream handling when uploading files Might solve the problem with OS X masters
Diffstat (limited to 'netrender/slave.py')
-rw-r--r--netrender/slave.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netrender/slave.py b/netrender/slave.py
index 3976695d..7f72530e 100644
--- a/netrender/slave.py
+++ b/netrender/slave.py
@@ -86,6 +86,7 @@ def testFile(conn, job_id, slave_id, rfile, JOB_PREFIX, main_path = None):
if not found:
print("Found file %s at %s but signature mismatch!" % (rfile.filepath, job_full_path))
+ os.remove(job_full_path)
job_full_path = prefixPath(JOB_PREFIX, rfile.filepath, main_path, force = True)
if not found:
@@ -258,8 +259,7 @@ def render_slave(engine, netsettings, threads):
if stdout:
# (only need to update on one frame, they are linked
conn.request("PUT", logURL(job.id, first_frame), stdout, headers=headers)
- response = conn.getresponse()
- response.read()
+ responseStatus(conn)
# Also output on console
if netsettings.use_slave_output_log: