From 62eef820fb260dc014aec62487cb04d25dd7e754 Mon Sep 17 00:00:00 2001
From: Michael DM Dryden <mdryden@chem.utoronto.ca>
Date: Fri, 2 Jun 2017 18:00:15 -0400
Subject: [PATCH] dstat_comm: Flush correct pipe.

---
 dstat_interface/dstat_comm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dstat_interface/dstat_comm.py b/dstat_interface/dstat_comm.py
index 511b059..b50aa64 100755
--- a/dstat_interface/dstat_comm.py
+++ b/dstat_interface/dstat_comm.py
@@ -205,8 +205,8 @@ class SerialConnection(GObject.Object):
     def flush_data(self):
         self.assert_connected()
         
-        while self.proc_pipe_p.poll() is True:
-            self.proc_pipe_p.recv()
+        while self.data_pipe_p.poll() is True:
+            self.data_pipe_p.recv()
     
     def send_ctrl(self, ctrl):
         self.assert_connected()
-- 
GitLab