Skip to content

Commit b1b5c16

Browse files
committed
Merge pull request #26 from kuzzleio/bugfix
fix: queries weren't bufferized while connecting
2 parents 4220530 + cd45a8c commit b1b5c16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {

src/kuzzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ Kuzzle.prototype.query = function (collection, controller, action, query, option
681681

682682
if (self.state === 'connected' || (options && options.queuable === false)) {
683683
emitRequest.call(this, object, cb);
684-
} else if (self.queuing|| self.state === 'initializing') {
684+
} else if (self.queuing|| ['initializing', 'connecting'].indexOf(self.state) !== -1) {
685685
cleanQueue.call(this, object, cb);
686686

687687
if (self.queueFilter) {

0 commit comments

Comments
 (0)