mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +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 {
|
||||
c = s.read();
|
||||
} catch (IOException e) {
|
||||
if (e.getMessage() != null && e.getMessage().contains("Missing contact address!")) {
|
||||
logger.warn("Sync contacts contained invalid contact, ignoring: {}", e.getMessage());
|
||||
continue;
|
||||
} else {
|
||||
logger.warn("Failed to read sync contacts", e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (c == null) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue