mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Handle OverlappingFileLockException when linking
This commit is contained in:
parent
abde122a35
commit
69fe3986cf
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,7 @@ import org.whispersystems.signalservice.internal.util.DynamicCredentialsProvider
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
import java.nio.channels.OverlappingFileLockException;
|
||||||
import java.util.concurrent.TimeoutException;
|
import java.util.concurrent.TimeoutException;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
|
@ -194,6 +195,9 @@ class ProvisioningManagerImpl implements ProvisioningManager {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.debug("Account in use or failed to load.", e);
|
logger.debug("Account in use or failed to load.", e);
|
||||||
return false;
|
return false;
|
||||||
|
} catch (OverlappingFileLockException e) {
|
||||||
|
logger.debug("Account in use.", e);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
try (signalAccount) {
|
try (signalAccount) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue