blob: 0379337bcc2b1a95b0a01ef0cb0a1f8a35272b4f [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
crate::model::{error::ModelError, realm::Realm},
std::sync::Arc,
};
pub(super) async fn do_stop(realm: &Arc<Realm>) -> Result<(), ModelError> {
realm.stop_instance(false).await
}