Skip to content

Commit 59cbf03

Browse files
authored
Merge pull request brianc#2220 from brianc/bmc/fix-loop
Send sync after flush
2 parents d5b615e + a79c8e7 commit 59cbf03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg/lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ Connection.prototype.flush = function () {
172172
const syncBuffer = serialize.sync()
173173
Connection.prototype.sync = function () {
174174
this._ending = true
175-
this._send(syncBuffer)
176175
this._send(flushBuffer)
176+
this._send(syncBuffer)
177177
}
178178

179179
const endBuffer = serialize.end()

0 commit comments

Comments
 (0)