[Android] Remove delays for streams and history remote access endpoints

Nicolas Pomepuy git at videolan.org
Fri Jul 5 15:43:10 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jul  5 10:15:10 2024 +0200| [8fad37d667091c0f7532e3d34d4415dab51ddd6f] | committer: Duncan McNamara

Remove delays for streams and history remote access endpoints

> https://code.videolan.org/videolan/vlc-android/commit/8fad37d667091c0f7532e3d34d4415dab51ddd6f
---

 .../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt     | 2 --
 1 file changed, 2 deletions(-)

diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index ca7a042021..179eed10dc 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -778,7 +778,6 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                 return at get
             }
             val gson = Gson()
-            delay(5000)
             call.respondText(gson.toJson(list))
         }
         // List of all the network shares
@@ -807,7 +806,6 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                         ?: "", false, "", (mediaLibraryItem as MediaWrapper).uri.toString(), true, favorite = mediaLibraryItem.isFavorite))
             }
             val gson = Gson()
-            delay(5000)
             call.respondText(gson.toJson(list))
         }
         //list of folders and files in a path



More information about the Android mailing list