Flush output at the end of thrift_dump
authorDavid Reiss <dreiss@apache.org>
Sun, 5 Apr 2009 06:19:51 +0000 (06:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Sun, 5 Apr 2009 06:19:51 +0000 (06:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762043 13f79535-47bb-0310-9956-ffa450edef68

contrib/thrift_dump.cpp

index e034797..0ddfcec 100644 (file)
@@ -82,6 +82,7 @@ int main(int argc, char *argv[]) {
   } catch (TProtocolException exn) {
     cout << "Protocol Exception: " << exn.what() << endl;
   } catch (...) {
+    oprot->getTransport()->flush();
   }
 
   cout << endl;