diff --git a/lib/units/websocket/index.js b/lib/units/websocket/index.js index 51e3cbd750..31d8c943b1 100644 --- a/lib/units/websocket/index.js +++ b/lib/units/websocket/index.js @@ -548,16 +548,22 @@ module.exports = function(options) { ]) }) .on('input.touchMove', function(channel, data) { - push.send([ - channel - , wireutil.envelope(new wire.TouchMoveMessage( - data.seq - , data.contact - , data.x - , data.y - , data.pressure - )) - ]) + try { + push.send([ + channel + , wireutil.envelope(new wire.TouchMoveMessage( + data.seq + , data.contact + , data.x + , data.y + , data.pressure + )) + ]) + } + catch(err) { + //workaround for https://github.com/openstf/stf/issues/1180 + log.error('input.touchMove had an error', err.stack) + } }) .on('input.touchUp', function(channel, data) { push.send([