mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Prevent endless loop when receiving contact sync message
This commit is contained in:
parent
32150b1aaa
commit
7a3522dc01
1 changed files with 7 additions and 2 deletions
|
@ -222,8 +222,13 @@ public class SyncHelper {
|
||||||
try {
|
try {
|
||||||
c = s.read();
|
c = s.read();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.warn("Sync contacts contained invalid contact, ignoring: {}", e.getMessage());
|
if (e.getMessage() != null && e.getMessage().contains("Missing contact address!")) {
|
||||||
continue;
|
logger.warn("Sync contacts contained invalid contact, ignoring: {}", e.getMessage());
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
logger.warn("Failed to read sync contacts", e);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (c == null) {
|
if (c == null) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue