mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 16:01:26 +00:00
more logging around daemon process management
This commit is contained in:
parent
1fcca83031
commit
1838ac3997
1 changed files with 4 additions and 0 deletions
|
@ -56,12 +56,16 @@ function lauchDaemon() {
|
||||||
app.on('ready', function(){
|
app.on('ready', function(){
|
||||||
// Check if the daemon is already running. If we get
|
// Check if the daemon is already running. If we get
|
||||||
// an error its because its not running
|
// an error its because its not running
|
||||||
|
console.log('Checking for lbrynet daemon')
|
||||||
client.request(
|
client.request(
|
||||||
'status', [],
|
'status', [],
|
||||||
function (err, res) {
|
function (err, res) {
|
||||||
// Did it all work ?
|
// Did it all work ?
|
||||||
if (err) {
|
if (err) {
|
||||||
|
console.log('lbrynet daemon needs to be launched')
|
||||||
lauchDaemon();
|
lauchDaemon();
|
||||||
|
} else {
|
||||||
|
console.log('lbrynet daemon is already running')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue