mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-24 08:39:53 +01:00
Enter success state after sending ack
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.briarproject.briar.socialbackup.recovery;
|
||||
|
||||
import org.briarproject.bramble.api.FormatException;
|
||||
import org.briarproject.bramble.api.client.ClientHelper;
|
||||
import org.briarproject.bramble.api.crypto.CryptoComponent;
|
||||
import org.briarproject.bramble.api.crypto.KeyPair;
|
||||
@@ -85,6 +84,7 @@ public class SecretOwnerTaskImpl implements SecretOwnerTask {
|
||||
OutputStream outputStream = socket.getOutputStream();
|
||||
outputStream.write("ack".getBytes());
|
||||
serverSocket.close();
|
||||
observer.onStateChanged(new State.Success());
|
||||
} catch (IOException e) {
|
||||
observer.onStateChanged(new State.Failure());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user