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

handle the emit in try/catch #47

Merged
merged 2 commits into from
Dec 20, 2017
Merged

handle the emit in try/catch #47

merged 2 commits into from
Dec 20, 2017

Conversation

GMetaxakis
Copy link
Contributor

@GMetaxakis GMetaxakis commented Dec 20, 2017

issue #46

@mattqs mattqs merged commit 13fc371 into Quobject:master Dec 20, 2017
@GMetaxakis
Copy link
Contributor Author

may I know when the next version will go live?

@mattqs
Copy link
Contributor

mattqs commented Dec 20, 2017

First week in 2018.

@@ -445,7 +445,7 @@ private bool Flush()
var log = LogManager.GetLogger(Global.CallerName());

log.Info(string.Format("ReadyState={0} Transport.Writeable={1} Upgrading={2} WriteBuffer.Count={3}",ReadyState,Transport.Writable,Upgrading, WriteBuffer.Count));
if (ReadyState != ReadyStateEnum.CLOSED && this.Transport.Writable && !Upgrading && WriteBuffer.Count != 0)
if (ReadyState != ReadyStateEnum.CLOSED && ReadyState == ReadyStateEnum.OPEN && this.Transport.Writable && !Upgrading && WriteBuffer.Count != 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be shortened:
if ReadyState == ReadyStateEnum.OPEN has to be true ReadyState != ReadyStateEnum.CLOSED is always true, the first condition is not needed

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

Successfully merging this pull request may close these issues.

3 participants