File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,29 @@ const Terminal = {
2828 } ,
2929
3030 async stopAxs ( ) {
31+ const filesDir = await new Promise ( ( resolve , reject ) => {
32+ system . getFilesDir ( resolve , reject ) ;
33+ } ) ;
3134 const pidExists = await new Promise ( ( resolve , reject ) => {
3235 system . fileExists ( `${ filesDir } /pid` , false , ( result ) => {
3336 resolve ( result == 1 ) ;
3437 } , reject ) ;
3538 } ) ;
3639
3740 if ( pidExists ) {
41+ const filesDir = await new Promise ( ( resolve , reject ) => {
42+ system . getFilesDir ( resolve , reject ) ;
43+ } ) ;
3844 const pid = await Executor . execute ( `cat ${ filesDir } /pid` )
3945 Executor . stop ( pid )
4046 }
4147
4248 } ,
4349
4450 async isAxsRunning ( ) {
51+ const filesDir = await new Promise ( ( resolve , reject ) => {
52+ system . getFilesDir ( resolve , reject ) ;
53+ } ) ;
4554 const pidExists = await new Promise ( ( resolve , reject ) => {
4655 system . fileExists ( `${ filesDir } /pid` , false , ( result ) => {
4756 resolve ( result == 1 ) ;
You can’t perform that action at this time.
0 commit comments