Fix stack overflow when task name not recognized

This commit is contained in:
Zaid Abdulla committed 2017-05-17 19:14:47 -07:00
1 parent 30221f1d4e
commit 7fdd04343b
1 file changed
+1 -1
+1 -1
View File
@@ -431,7 +431,7 @@ nextRpc = (sessionContext) ->
session.addProvisions(sessionContext, "task_#{task._id}", session.addProvisions(sessionContext, "task_#{task._id}",
[['instances', task.objectName, 0]]); [['instances', task.objectName, 0]]);
else else
return throwError(new Error('Task name not recognized'), sessionContext.httpResponse) if err return throwError(new Error('Task name not recognized'), sessionContext.httpResponse)
return nextRpc(sessionContext) return nextRpc(sessionContext)