| 180 | } |
| 181 | |
| 182 | void ChttpGet::AbortGet() { |
| 183 | #ifdef WIN32 |
| 184 | OutputDebugString("Aborting....\n"); |
| 185 | #endif |
| 186 | m_Aborting = true; |
| 187 | while (!m_Aborted) |
| 188 | Sleep(50); // Wait for the thread to end |
| 189 | #ifdef WIN32 |
| 190 | OutputDebugString("Aborted....\n"); |
| 191 | #endif |
| 192 | } |
| 193 | |
| 194 | ChttpGet::ChttpGet(char *URL, char *localfile, char *proxyip, uint16_t proxyport) { |
| 195 | m_ProxyEnabled = true; |