mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
[Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLine
This commit is contained in:
parent
814429dc72
commit
1ec753f734
@ -263,6 +263,7 @@ bool PaymentServer::ipcSendCommandLine()
|
||||
if (!socket->waitForConnected(BITCOIN_IPC_CONNECT_TIMEOUT))
|
||||
{
|
||||
delete socket;
|
||||
socket = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -271,12 +272,14 @@ bool PaymentServer::ipcSendCommandLine()
|
||||
out.setVersion(QDataStream::Qt_4_0);
|
||||
out << r;
|
||||
out.device()->seek(0);
|
||||
|
||||
socket->write(block);
|
||||
socket->flush();
|
||||
|
||||
socket->waitForBytesWritten(BITCOIN_IPC_CONNECT_TIMEOUT);
|
||||
socket->disconnectFromServer();
|
||||
|
||||
delete socket;
|
||||
socket = NULL;
|
||||
fResult = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user