Fixed some race conditions with queries
Fixed some race conditions with queries

rasata/ShareJS,mcanthony/ShareJS,playcanvas/ShareJS,a0x/ShareJS,luto/ShareJS,modulexcite/ShareJS,freewind/ShareJS,erpframework/ShareJS,matthewbauer/ShareJS,igmcdowell/ShareJS,gdseller/ShareJS,Nzaga/ShareJS,igmcdowell/ShareJS,share/ShareJS,kantele/k-share,playcanvas/ShareJS,kustomzone/ShareJS,gdseller/ShareJS