Turn off notifier if errors out
This commit is contained in:
parent
74621ef1fb
commit
0145bebb4b
|
@ -52,12 +52,14 @@ gui.notify = function (title, message) {
|
||||||
}, function (err, response) {
|
}, function (err, response) {
|
||||||
// Response is response from notification
|
// Response is response from notification
|
||||||
if (err) {
|
if (err) {
|
||||||
|
gui.notifierWorking = false;
|
||||||
log.error(`Error with notification`, err);
|
log.error(`Error with notification`, err);
|
||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
return resolve(true);
|
return resolve(true);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
gui.notifierWorking = false;
|
||||||
//notify-send is not found
|
//notify-send is not found
|
||||||
//determine an alternate for raspian
|
//determine an alternate for raspian
|
||||||
//this feels like a hack
|
//this feels like a hack
|
||||||
|
|
Loading…
Reference in New Issue