use libremetaverse::{ClientLifecycleState, GridClient};

fn main() -> Result<(), libremetaverse::Error> {
    let client = GridClient::new()?;
    assert_eq!(client.lifecycle_state(), ClientLifecycleState::Active);
    client.dispose_with_method()?;
    client.dispose_with_method()?;
    assert_eq!(client.lifecycle_state(), ClientLifecycleState::Disposed);
    Ok(())
}
