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

How to stop Upload speed test? #16

Open
basil369 opened this issue Sep 21, 2022 · 0 comments
Open

How to stop Upload speed test? #16

basil369 opened this issue Sep 21, 2022 · 0 comments

Comments

@basil369
Copy link

The stopTest() in NDTTest.kt works only for download speed test. I tried to implement a similar method for stopping the upload test however it is not working.
fun stopTest() { uploader?.cancel() downloader?.cancel() executorService?.shutdown() runLock.release() }

fun cancel() { Log.d("Uploader", "cancel: called") ws?.cancel() releaseResources() }

This is what I tried. Can someone let me know a way to stop the upload test in between?

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

1 participant