From 79c163e88fc6686b04919069916e1ac5dff7a559 Mon Sep 17 00:00:00 2001 From: fuwa Date: Mon, 22 Jul 2019 04:35:05 +0800 Subject: [PATCH] exit main app if daemon gets killed --- cyberwow/lib/controller/syncing.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cyberwow/lib/controller/syncing.dart b/cyberwow/lib/controller/syncing.dart index 803777e..e1abefc 100644 --- a/cyberwow/lib/controller/syncing.dart +++ b/cyberwow/lib/controller/syncing.dart @@ -62,4 +62,7 @@ Stream runBinary (String name) async* { await for (var line in outputProcess.stdout.transform(utf8.decoder)) { yield line; } + + // the app should never reach here + exit(1); }