浏览代码

Adding return value signaling transfer success to sendResource

Andrej Studen @ VBOX 2 月之前
父节点
当前提交
86473dd0ba
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      orthancPeers.py

+ 2 - 2
orthancPeers.py

@@ -73,10 +73,10 @@ class orthancPeers:
             jobStatus=self.checkJobStatus(jobId)
             if jobStatus['State']=="Success":
                 print('Job succeeded')
-                return
+                return True
             if jobStatus['State']=="Failure":
                 print('Job failed')
-                return
+                return False
 
             try:
                 eta=datetime.datetime.strptime(jobStatus['EstimatedTimeOfArrival'],dateFormat)