mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Call getter instead of using cached instance variable
This commit is contained in:
parent
65adfdd6f5
commit
52bb92dce4
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ public class SignalDependencies {
|
||||||
|
|
||||||
public SignalServiceMessageReceiver getMessageReceiver() {
|
public SignalServiceMessageReceiver getMessageReceiver() {
|
||||||
return getOrCreate(() -> messageReceiver,
|
return getOrCreate(() -> messageReceiver,
|
||||||
() -> messageReceiver = new SignalServiceMessageReceiver(pushServiceSocket));
|
() -> messageReceiver = new SignalServiceMessageReceiver(getPushServiceSocket()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SignalServiceMessageSender getMessageSender() {
|
public SignalServiceMessageSender getMessageSender() {
|
||||||
|
@ -197,7 +197,7 @@ public class SignalDependencies {
|
||||||
Optional.empty(),
|
Optional.empty(),
|
||||||
executor,
|
executor,
|
||||||
ServiceConfig.MAX_ENVELOPE_SIZE,
|
ServiceConfig.MAX_ENVELOPE_SIZE,
|
||||||
pushServiceSocket));
|
getPushServiceSocket()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<SecureValueRecovery> getSecureValueRecoveryV2() {
|
public List<SecureValueRecovery> getSecureValueRecoveryV2() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue