mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Try and not crash with subscriptions
Failed subscriptions will try agian in 1 min
This commit is contained in:
parent
5e819fdfcd
commit
f24a792b03
@ -152,6 +152,14 @@ module.exports = function(RED) {
|
||||
}
|
||||
});
|
||||
|
||||
sub_request.on('error', function(){
|
||||
// devie probably offline
|
||||
// try again after a minute
|
||||
setTimeout( function() {
|
||||
subscribe(node)
|
||||
}, 60000)
|
||||
})
|
||||
|
||||
sub_request.end();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user