about summary refs log tree commit diff stats
path: root/src/service.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/service.rs')
-rw-r--r--src/service.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/service.rs b/src/service.rs
index 60960e3..b42daba 100644
--- a/src/service.rs
+++ b/src/service.rs
@@ -138,6 +138,8 @@ impl Service {
             lock.kill().await?;
             drop(lock);
             self.proc = None;
+            self.stdout = None;
+            self.stderr = None;
             Ok(())
         } else {
             Err(Box::new(std::io::Error::new(
@@ -170,7 +172,7 @@ impl Service {
                 )));
             };
             drop(lock);
-            let (tx, rx) = channel(100);
+            let (tx, rx) = channel(1024);
             let sname = self.conf.name.clone();
             spawn(async move {
                 let mut br = BufReader::new(stdout).lines();
@@ -206,7 +208,7 @@ impl Service {
                 )));
             };
             drop(lock);
-            let (tx, rx) = channel(100);
+            let (tx, rx) = channel(1024);
             let sname = self.conf.name.clone();
             spawn(async move {
                 let mut br = BufReader::new(stderr).lines();