Skip to content

Commit

Permalink
(fix) Fixed child process not getting killed
Browse files Browse the repository at this point in the history
  • Loading branch information
K3vinb5 committed Dec 13, 2024
1 parent 61fd2d9 commit ee5ce28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/processes/process_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import 'package:flutter/services.dart';
import 'package:path_provider/path_provider.dart';
import 'package:unyo/sources/sources.dart';
import 'package:path/path.dart' as p;
import 'package:http/http.dart' as http;
import 'package:unyo/util/constants.dart';

class ProcessManager {
Process? _process;
Expand Down Expand Up @@ -101,6 +103,7 @@ class ProcessManager {
if (_process != null) {
_addOutput("Killed process Successfully", false);
_process!.kill();
var response = http.get("${getEndpoint()}/unyo/kill");
_process = null;
}
}
Expand Down

0 comments on commit ee5ce28

Please sign in to comment.