[dds/dap] Fix a bug that could result in test failures

This logic was inverted and could result in duplicate terminate requests being sent. Depending on timing, this request might be sent but not responded to (because the DA was already shutting down), causing a "Application terminated with pending terminate request" error.

Change-Id: If89f002792878f8a5ce12341536be70ee01cde11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/310380
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>

https://dart.googlesource.com/sdk/+/0a691e3647102092fc87686cc1e9982fea2d82f8
1 file changed
tree: 73ab7c9a79f4882b4af8c7f1e84502c1f4c4c7e2
  1. commits.json