(status, payload)
| 95 | |
| 96 | |
| 97 | def resultHandler(status, payload): |
| 98 | if status is False or status is POC_RESULT_STATUS.FAIL: |
| 99 | return |
| 100 | elif status is POC_RESULT_STATUS.RETRAY: |
| 101 | changeScanCount(-1) |
| 102 | th.queue.put(payload) |
| 103 | return |
| 104 | elif status is True or status is POC_RESULT_STATUS.SUCCESS: |
| 105 | msg = payload |
| 106 | else: |
| 107 | msg = str(status) |
| 108 | changeFoundCount(1) |
| 109 | if th.s_flag: |
| 110 | printMessage(msg) |
| 111 | if th.f_flag: |
| 112 | output2file(msg) |
| 113 | if th.single_mode: |
| 114 | singleMode() |
| 115 | |
| 116 | |
| 117 | def setThreadLock(): |
no test coverage detected