Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop_on_panic doesnt work #358

Closed
hrls opened this issue Mar 3, 2020 · 2 comments
Closed

stop_on_panic doesnt work #358

hrls opened this issue Mar 3, 2020 · 2 comments

Comments

@hrls
Copy link

hrls commented Mar 3, 2020

use actix::prelude::*;

struct Foo;

impl Actor for Foo {
    type Context = Context<Self>;

    fn started(&mut self, _: &mut Self::Context) {
        panic!("fooed");
    }
}

fn main() {
    System::builder()
        .stop_on_panic(true)
        .run(|| {
            let _ = Foo.start();
        })
        .unwrap();
}

I see error in terminal, but stdin is still dangled by process.

@Jonathas-Conceicao
Copy link
Member

System is just a reexport from actix-rt which is in the actix-net repo, this has been reported there actix/actix-net#80.

@hrls
Copy link
Author

hrls commented Mar 4, 2020

Thank you!

@hrls hrls closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants