Skip to content

Commit

Permalink
Fix: fehlerhafte Fehlermeldung beim PC-Start
Browse files Browse the repository at this point in the history
Fix: Fehlermeldung zur fehlerhaften Python-Konfiguration beim PC-Start
  • Loading branch information
Janokisu committed Nov 3, 2022
1 parent f6806ca commit 02af7c3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function CallMonitor_connnect(){

GL_PythonListen.stop();

GL_PythonListen.start();
GL_PythonListen.start("autostart");


let FBox = GL_Fritz_URL.split("//")[1];
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "__MSG_extensionDescription__",
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "0.2.0",
"version": "0.2.1",
"default_locale": "en",
"icons": {
"48": "icons/telefonliste.svg"
Expand Down
14 changes: 12 additions & 2 deletions tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,19 +271,29 @@ class PythonListen{
return ok;
}

start(){
start(x){
if(this.connect() == true){
if(this.send("version") == true){

const self = this; //Bezug herstellen

let sek = 1;
if(x == "autostart"){
sek = 10;
}

this.#thisTimeout = setTimeout(() => {

//es dauert aufällig lange. evtl noch ne alte Version
self.errorEvent({
"state": 0,
"code": 0,
"message": "\n" + browser.i18n.getMessage("CallMon_alt", [CallMon_Version, self.getCallMonVer()])
});
}, 2*1000);

self.stop();

}, sek*1000);

return true;
}
Expand Down

0 comments on commit 02af7c3

Please sign in to comment.