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

Cannot create 2 Syncthing objects #8

Closed
Jvlythical opened this issue Jul 2, 2016 · 2 comments
Closed

Cannot create 2 Syncthing objects #8

Jvlythical opened this issue Jul 2, 2016 · 2 comments

Comments

@Jvlythical
Copy link

Jvlythical commented Jul 2, 2016

e.g.
a = Syncthing(api_key=1, ...)
b = Syncthing(api_key=2, ...)

Results in calls from object a (e.g. a.sys.config()) to get b's config rather than the expected a's config.

The issue is caused by the C class having a static variable C.iface which gets overridden when a new Syncthing object is created. As a result, when object a tries to make a new api call, it uses b's iface variable.

@blakev
Copy link
Owner

blakev commented Jan 13, 2017

Can you confirm if this is still an issue? I've re-implemented the API and should no longer have this problem.

@blakev
Copy link
Owner

blakev commented Jan 27, 2017

Marking as closed, I cannot replicate this any more.

@blakev blakev closed this as completed Jan 27, 2017
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