summaryrefslogtreecommitdiff
path: root/host/proto
diff options
context:
space:
mode:
Diffstat (limited to 'host/proto')
-rw-r--r--host/proto/proto.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/proto/proto.py b/host/proto/proto.py
index e5f0af21..8856a584 100644
--- a/host/proto/proto.py
+++ b/host/proto/proto.py
@@ -150,6 +150,10 @@ class Proto:
h = self.handlers[key]
h[0] (*(frame.decode (h[1])))
+ def flush (self):
+ """Drop any pending frames."""
+ self.send_queue = [ ]
+
class Frame:
def __init__ (self, command = None, fmt = '', *args):