From 658a002e258b1d8cf90818ebed8dc092243736ca Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Sun, 14 Jul 2024 14:13:56 +0200 Subject: [PATCH] Releases the notifiable of the first buffer faster. --- src/openlcb/BLEHubPort.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openlcb/BLEHubPort.hxx b/src/openlcb/BLEHubPort.hxx index 6140d9f08..c181f57c7 100644 --- a/src/openlcb/BLEHubPort.hxx +++ b/src/openlcb/BLEHubPort.hxx @@ -187,6 +187,10 @@ public: if (notRunning_) { notRunning_ = 0; + // When we have exactly one buffer at hand, we release the done + // notify of it to allow the upstream stack to generate more + // data quicker. + b->set_done(nullptr); } else {