Fix issue #15 - completed operation not removed from operation manager
This commit is contained in:
		@@ -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",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user