File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/test/java/net/yudichev/googlephotosupload/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111import java .nio .file .Path ;
1212import java .nio .file .Paths ;
1313import java .util .Optional ;
14+ import java .util .concurrent .ForkJoinPool ;
1415import java .util .concurrent .atomic .AtomicBoolean ;
1516import java .util .concurrent .atomic .AtomicReference ;
1617
@@ -47,14 +48,14 @@ public static void forgetUploadStateOnShutdown() {
4748
4849 @ Override
4950 protected void doStart () {
50- uploader .upload (ImmutableList .of (rootDir ), resume )
51+ ForkJoinPool . commonPool (). execute (() -> uploader .upload (ImmutableList .of (rootDir ), resume )
5152 .whenComplete (logErrorOnFailure (logger , "Failed" ))
5253 .whenComplete ((aVoid , throwable ) -> {
5354 lastFailure .set (throwable );
5455 if (forgetUploadStateOnShutdown .getAndSet (false )) {
5556 uploader .forgetUploadState ();
5657 }
5758 applicationLifecycleControl .initiateShutdown ();
58- });
59+ })) ;
5960 }
6061}
You can’t perform that action at this time.
0 commit comments