|
|
@ -263,6 +263,7 @@ bool PaymentServer::ipcSendCommandLine() |
|
|
|
if (!socket->waitForConnected(BITCOIN_IPC_CONNECT_TIMEOUT)) |
|
|
|
if (!socket->waitForConnected(BITCOIN_IPC_CONNECT_TIMEOUT)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
delete socket; |
|
|
|
delete socket; |
|
|
|
|
|
|
|
socket = NULL; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -271,12 +272,14 @@ bool PaymentServer::ipcSendCommandLine() |
|
|
|
out.setVersion(QDataStream::Qt_4_0); |
|
|
|
out.setVersion(QDataStream::Qt_4_0); |
|
|
|
out << r; |
|
|
|
out << r; |
|
|
|
out.device()->seek(0); |
|
|
|
out.device()->seek(0); |
|
|
|
|
|
|
|
|
|
|
|
socket->write(block); |
|
|
|
socket->write(block); |
|
|
|
socket->flush(); |
|
|
|
socket->flush(); |
|
|
|
|
|
|
|
|
|
|
|
socket->waitForBytesWritten(BITCOIN_IPC_CONNECT_TIMEOUT); |
|
|
|
socket->waitForBytesWritten(BITCOIN_IPC_CONNECT_TIMEOUT); |
|
|
|
socket->disconnectFromServer(); |
|
|
|
socket->disconnectFromServer(); |
|
|
|
|
|
|
|
|
|
|
|
delete socket; |
|
|
|
delete socket; |
|
|
|
|
|
|
|
socket = NULL; |
|
|
|
fResult = true; |
|
|
|
fResult = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|