Fix issue #15 - completed operation not removed from operation manager

This commit is contained in:
Nicolas Dextraze 2016-12-07 18:14:31 -08:00
parent c45155811e
commit 3ae8086e8d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "eventstore-node", "name": "eventstore-node",
"version": "0.0.18", "version": "0.0.19",
"description": "A port of the EventStore .Net ClientAPI to Node.js", "description": "A port of the EventStore .Net ClientAPI to Node.js",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",

View File

@ -121,7 +121,7 @@ OperationsManager.prototype.scheduleOperationRetry = function(operation) {
}; };
OperationsManager.prototype.removeOperation = function(operation) { OperationsManager.prototype.removeOperation = function(operation) {
this._activeOperations.remove(operation.connectionId); this._activeOperations.remove(operation.correlationId);
this._logDebug("RemoveOperation SUCCEEDED for %s.", operation); this._logDebug("RemoveOperation SUCCEEDED for %s.", operation);
this._totalOperationCount = this._activeOperations.length + this._waitingOperations.length; this._totalOperationCount = this._activeOperations.length + this._waitingOperations.length;
return true; return true;