Silently ignore unrecognized TransferComplete
This commit is contained in:
1 parent
396a687fa2
commit
d2d1ab0a0d
1 file changed
+4
-2
+4
-2
@@ -162,9 +162,11 @@ inform = (sessionData, rpcReq, callback) ->
|
||||
transferComplete = (sessionData, rpcReq, callback) ->
|
||||
commandKey = rpcReq.commandKey
|
||||
operation = sessionData.operations[commandKey]
|
||||
|
||||
if not operation?
|
||||
# TODO Show a warning instead
|
||||
throw new Error('Invalid command key')
|
||||
# TODO Show a warning
|
||||
return callback(null, {type : 'TransferCompleteResponse'})
|
||||
|
||||
instance = operation.args.instance
|
||||
|
||||
delete sessionData.operations[commandKey]
|
||||
|
||||
Reference in new issue
Block a user