From a130a92b89a168bf1ca01c7054c647a468f791ae Mon Sep 17 00:00:00 2001
From: Mike Buland <mike@xagasoft.com>
Date: Sun, 28 Jul 2024 23:59:15 -0700
Subject: Added a protocol flush on writeObject.

I believe this is correct, but I'm still not 100% sure how it should be
handled overall. This at least works and breaks the fewest things.
---
 c++-libbu++/src/protocolgats.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c++-libbu++/src/protocolgats.cpp b/c++-libbu++/src/protocolgats.cpp
index 2430100..bc8f0c5 100644
--- a/c++-libbu++/src/protocolgats.cpp
+++ b/c++-libbu++/src/protocolgats.cpp
@@ -59,5 +59,6 @@ void Gats::ProtocolGats::onNewData( Bu::Client *pClient )
 void Gats::ProtocolGats::writeObject( Gats::Object *pObj )
 {
     pStream->writeObject( pObj );
+    pUsedClient->flush();
 }
 
-- 
cgit v1.2.3