Send sync after flush

This commit is contained in:
Brian M. Carlson 2020-05-15 17:51:09 -05:00
parent bf469399b8
commit a79c8e7992

View File

@ -172,8 +172,8 @@ Connection.prototype.flush = function () {
const syncBuffer = serialize.sync()
Connection.prototype.sync = function () {
this._ending = true
this._send(syncBuffer)
this._send(flushBuffer)
this._send(syncBuffer)
}
const endBuffer = serialize.end()