fix session cancel issue

This commit is contained in:
Chunting Gu
2021-06-09 15:14:18 +08:00
parent e70863e2bd
commit 12971b7df3
7 changed files with 74 additions and 41 deletions
+3 -1
View File
@@ -96,7 +96,9 @@ public:
ProgressCallback callback = {});
// Cancel any in-progress connecting, writing or reading.
void Cancel();
// Return if any client object has been closed.
// It could be used to exit the program as soon as possible.
bool Cancel();
private:
void InitHeaders();