Skip to content

Commit

Permalink
fixed queue is not flushed at re-connection
Browse files Browse the repository at this point in the history
  • Loading branch information
naomichi-y committed Jun 7, 2016
1 parent 07b03a2 commit 730c282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ FluentSender.prototype._connect = function(callback){
});
if (self.path) {
self._socket.connect(self.path, function() {
self._flushSendQueue();
callback();
});
} else {
self._socket.connect(self.port, self.host, function() {
self._flushSendQueue();
callback();
});
}
Expand Down

0 comments on commit 730c282

Please sign in to comment.