Permalink
Browse files

stop handling if there are no handles

  • Loading branch information...
1 parent 2c6f0ea commit d22ea8b65f5e39389a5c0143bd50927d1c4dfaa0 @elbart committed Mar 12, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/memcache.js
View
@@ -98,7 +98,9 @@ Client.prototype.dispatchHandles = function() {
for (var i in this.handles) {
var handle = this.handles.shift();
// sys.debug('dispatching handle ' + handle);
- handle();
+ if (typeof handle !== 'undefined') {
+ handle();
+ }
}
};

0 comments on commit d22ea8b

Please sign in to comment.