Fix async upgrade inside cork

This commit is contained in:
Alex Hultman
2023-04-15 22:14:23 +02:00
parent cc22680117
commit c5de72c9be
2 changed files with 18 additions and 1 deletions
+5
View File
@@ -135,6 +135,11 @@ protected:
getLoopData()->corkedSocket = this;
}
/* Returns the corked socket or nullptr */
void *corkedSocket() {
return getLoopData()->corkedSocket;
}
/* Returns wheter we are corked or not */
bool isCorked() {
return getLoopData()->corkedSocket == this;