3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Payment channels: invoke destroyConn on server side even when client requested it.

This allows servers to do something useful when the channel closes normally, like forward the money onwards.
This commit is contained in:
Mike Hearn 2013-12-10 11:39:30 -08:00
parent 54b1054d03
commit ea6f2a0fc3

View File

@ -433,6 +433,7 @@ public class PaymentChannelServer {
log.info("Sending CLOSE back without broadcast settlement tx.");
}
conn.sendToClient(msg.build());
conn.destroyConnection(clientRequestedClose);
}
@Override