Better error when calling RunAsync on a Sandbox2 instance twice

PiperOrigin-RevId: 553129224
Change-Id: I92ff15d111ccd5e7d4310a2e1559811dd1cc7027
This commit is contained in:
Wiktor Garbacz 2023-08-02 06:43:35 -07:00 committed by Copybara-Service
parent 1c960e8389
commit 3bbb98c494

View File

@ -71,6 +71,7 @@ Result Sandbox2::AwaitResult() {
}
bool Sandbox2::RunAsync() {
CHECK(monitor_ == nullptr) << "Sandbox was launched already";
Launch();
// If the sandboxee setup failed we return 'false' here.