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) ->
|
transferComplete = (sessionData, rpcReq, callback) ->
|
||||||
commandKey = rpcReq.commandKey
|
commandKey = rpcReq.commandKey
|
||||||
operation = sessionData.operations[commandKey]
|
operation = sessionData.operations[commandKey]
|
||||||
|
|
||||||
if not operation?
|
if not operation?
|
||||||
# TODO Show a warning instead
|
# TODO Show a warning
|
||||||
throw new Error('Invalid command key')
|
return callback(null, {type : 'TransferCompleteResponse'})
|
||||||
|
|
||||||
instance = operation.args.instance
|
instance = operation.args.instance
|
||||||
|
|
||||||
delete sessionData.operations[commandKey]
|
delete sessionData.operations[commandKey]
|
||||||
|
|||||||
Reference in new issue
Block a user