Skip to content

Commit 5143521

Browse files
authored
Merge 045956c into 3b854ad
2 parents 3b854ad + 045956c commit 5143521

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/karma.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ function Karma (socket, iframe, opener, navigator, location, document) {
288288
socket.on('connect', function () {
289289
socket.io.engine.on('upgrade', function () {
290290
resultsBufferLimit = 1
291+
// Flush any results which were buffered before the upgrade to WebSocket protocol.
292+
if (resultsBuffer.length > 0) {
293+
socket.emit('result', resultsBuffer)
294+
resultsBuffer = []
295+
}
291296
})
292297
var info = {
293298
name: navigator.userAgent,

0 commit comments

Comments
 (0)