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

Mailbox empty statistics #103

Closed
samanbarghi opened this issue Mar 7, 2017 · 2 comments
Closed

Mailbox empty statistics #103

samanbarghi opened this issue Mar 7, 2017 · 2 comments
Labels

Comments

@samanbarghi
Copy link
Contributor

This line can be reached even when the mailbox is suspended and not empty : https://github.com/AsynkronIT/protoactor-go/blob/dev/mailbox/mailbox.go#L94

@rogeralsing rogeralsing added the bug label Mar 7, 2017
@rogeralsing
Copy link
Collaborator

Good catch!

@alex023
Copy link
Contributor

alex023 commented May 25, 2017

Before execution, adding judge sentences?just like:

if !m.suspended{  //<---add this line
 for _, ms := range m.mailboxStats {
		ms.MailboxEmpty()
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants