Enter success state after sending ack

This commit is contained in:
ameba23
2021-04-13 18:22:19 +02:00
parent b07206c898
commit f13cc15661

View File

@@ -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());
}