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

FileStateFactory creates a non empty FileState on creating a new agent. #11

Closed
svenstm opened this issue Mar 18, 2013 · 1 comment
Closed
Assignees
Labels

Comments

@svenstm
Copy link

svenstm commented Mar 18, 2013

I created two agents right after each other. When trying to set the xmpp account I complains it already has a username and password:

Compare:'merlin'/'merlin' to 'henk'/'askask'

I tried tracing when it goes wrong, but it happens somewhere where the file is created for the agent. FileStateFactory:98

@ludost
Copy link
Member

ludost commented Mar 18, 2013

Found the issue: in both the old and the new version of FileState there was in incorrectly "static" structure, which provided a small, but very real race-condition. Moreover, it was always triggered if an empty statefile was opened.

It's currently fixed in the Master, probably I'll backport a hotfix to the 1.0.x series.

@ghost ghost assigned ludost Mar 18, 2013
@svenstm svenstm closed this as completed Apr 2, 2013
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

2 participants