check if result exists before comparison

pull/3/head
cTn 10 years ago
parent f5ed23c2b7
commit 893671fa2b

@ -30,7 +30,7 @@ var serial = {
switch (info.error) {
case 'system_error': // we might be able to recover from this one
var crunch_status = function (info) {
if (!info.paused) {
if (info && !info.paused) {
console.log('SERIAL: Connection recovered from last onReceiveError');
googleAnalytics.sendException('Serial: onReceiveError - recovered', false);
} else {

Loading…
Cancel
Save