mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
possible fix for #275
This commit is contained in:
parent
77bfe28e2d
commit
71d75584ee
|
@ -832,6 +832,7 @@ ipcMain.on('request-stop-rigctld',(event,data)=>{
|
|||
|
||||
// CHECK RIGCTLD
|
||||
ipcMain.on('request-check-rigctld',(data)=>{
|
||||
|
||||
try {
|
||||
let Data = {
|
||||
state: "unknown",
|
||||
|
@ -843,12 +844,15 @@ ipcMain.on('request-check-rigctld',(data)=>{
|
|||
} else {
|
||||
Data["state"] = "unknown/stopped";
|
||||
}
|
||||
win.webContents.send('action-check-rigctld', Data);
|
||||
if (win !== null && win !== ''){
|
||||
win.webContents.send('action-check-rigctld', Data);
|
||||
}
|
||||
})
|
||||
|
||||
} catch (e) {
|
||||
mainLog.error(e)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue