| 141 | } |
| 142 | |
| 143 | RGPInterop::~RGPInterop() |
| 144 | { |
| 145 | RGPInteropTerminate terminate; |
| 146 | QString encoded = EncodeCommand(RGPCommand::Terminate, terminate.toParams(m_Version)); |
| 147 | |
| 148 | if(m_Socket) |
| 149 | { |
| 150 | m_Socket->write(encoded.trimmed().toUtf8().data()); |
| 151 | m_Socket->waitForBytesWritten(); |
| 152 | } |
| 153 | |
| 154 | m_Server->close(); |
| 155 | delete m_Server; |
| 156 | } |
| 157 | |
| 158 | void RGPInterop::InitializeRGP() |
| 159 | { |