| 64 | } |
| 65 | |
| 66 | void WebClient::attachWS(bool silent) { |
| 67 | _silent = silent; |
| 68 | xBufferLock.lock(); |
| 69 | _buflen = 0; |
| 70 | _allocsize = 0; |
| 71 | if (_buffer) { |
| 72 | free(_buffer); |
| 73 | _buffer = nullptr; |
| 74 | } |
| 75 | done = false; |
| 76 | xBufferLock.unlock(); |
| 77 | } |
| 78 | |
| 79 | // Should be used externally to signify to free any potential resources |
| 80 | // Any unread buffer will be cleared after that. |
no test coverage detected