Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grayjay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Grayjay
Commits
f9b772b7
Commit
f9b772b7
authored
1 year ago
by
Koen
Browse files
Options
Downloads
Patches
Plain Diff
Handle captcha exception on PlatformClientPool
parent
bbcc4243
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/platformplayer/api/media/PlatformClientPool.kt
+6
-0
6 additions, 0 deletions
...a/com/futo/platformplayer/api/media/PlatformClientPool.kt
with
6 additions
and
0 deletions
app/src/main/java/com/futo/platformplayer/api/media/PlatformClientPool.kt
+
6
−
0
View file @
f9b772b7
...
...
@@ -6,6 +6,7 @@ import com.futo.platformplayer.api.media.platforms.js.JSClient
import
com.futo.platformplayer.constructs.Event1
import
com.futo.platformplayer.constructs.Event2
import
com.futo.platformplayer.logging.Logger
import
com.futo.platformplayer.states.StateApp
class
PlatformClientPool
{
private
val
_parent
:
JSClient
;
...
...
@@ -51,6 +52,11 @@ class PlatformClientPool {
if
(
reserved
==
null
&&
_pool
.
size
<
capacity
)
{
Logger
.
i
(
TAG
,
"Started additional [${_parent.name}] client in pool [${_poolName}] (${_pool.size + 1}/${capacity})"
);
reserved
=
_parent
.
getCopy
();
reserved
?.
onCaptchaException
?.
subscribe
{
client
,
ex
->
StateApp
.
instance
.
handleCaptchaException
(
client
,
ex
);
};
reserved
?.
initialize
();
_pool
[
reserved
!!
]
=
_poolCounter
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment