mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Don't activate contacts on incoming streams.
This leaves the contact and the introduction session in inconsistent states.
This commit is contained in:
@@ -134,9 +134,6 @@ class KeyManagerImpl implements KeyManager, Service, EventListener {
|
|||||||
Transaction txn = db.startTransaction(false);
|
Transaction txn = db.startTransaction(false);
|
||||||
try {
|
try {
|
||||||
ctx = m.getStreamContext(txn, tag);
|
ctx = m.getStreamContext(txn, tag);
|
||||||
// Activate the contact if not already active
|
|
||||||
if (ctx != null && !activeContacts.containsKey(ctx.getContactId()))
|
|
||||||
db.setContactActive(txn, ctx.getContactId(), true);
|
|
||||||
txn.setComplete();
|
txn.setComplete();
|
||||||
} finally {
|
} finally {
|
||||||
db.endTransaction(txn);
|
db.endTransaction(txn);
|
||||||
|
|||||||
Reference in New Issue
Block a user