We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sdk-for-android/library/src/main/java/io/appwrite/services/Realtime.kt
Lines 116 to 123 in 85fac9d
when call this job in multiple threads ,it may call createSocket twice times or more?
when call this job in multiple threads ,it may call createSocket once. It will be ok by this code .
private var subCallDepth = AtomicInteger(0) delay(DEBOUNCE_MILLIS) if (subCallDepth.compareAndSet(0,1)) { createSocket() }
it may call createSocket twice times or more?
Appwrite Cloud
Linux
android
The text was updated successfully, but these errors were encountered:
No branches or pull requests
👟 Reproduction steps
sdk-for-android/library/src/main/java/io/appwrite/services/Realtime.kt
Lines 116 to 123 in 85fac9d
when call this job in multiple threads ,it may call createSocket twice times or more?
👍 Expected behavior
when call this job in multiple threads ,it may call createSocket once. It will be ok by this code .
👎 Actual Behavior
it may call createSocket twice times or more?
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Linux
🧱 Your Environment
android
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: