Prevent possible MI protocol async events lost.
authorMikhail Kurinnoi <m.kurinnoi@samsung.net>
Thu, 10 Oct 2019 07:51:21 +0000 (10:51 +0300)
committerAlexander Soldatov/Staff Engineer/AI Compiler Lab /SRR/Samsung Electronics <soldatov.a@samsung.com>
Thu, 10 Oct 2019 14:58:13 +0000 (17:58 +0300)
test-suite/NetcoreDbgTest/MI/MIDebugger.cs

index 8fb3741ac527994983d59580439b9cd5f22f051d..0762484623bd40ca951094e2a62c9fa1d0551872 100644 (file)
@@ -35,13 +35,13 @@ namespace NetcoreDbgTest.MI
 
                 MIOutput output = MIParser.ParseOutput(response);
 
+                foreach (var record in output.OutOfBandRecords) {
+                    EventQueue.Enqueue(record);
+                }
+
                 if (output.ResultRecord != null) {
                     resultRecord = output.ResultRecord;
                     break;
-                } else {
-                    foreach (var record in output.OutOfBandRecords) {
-                        EventQueue.Enqueue(record);
-                    }
                 }
             }