更新zltoolkit,适配最新代码

This commit is contained in:
xia-chu
2023-04-28 22:03:16 +08:00
parent 64553797bd
commit cdf97e7605
22 changed files with 26 additions and 26 deletions

View File

@@ -218,7 +218,7 @@ protected:
/**
* tcp连接断开
*/
void onErr(const toolkit::SockException &ex) override {
void onError(const toolkit::SockException &ex) override {
// tcp断开或者shutdown导致的断开
onWebSocketException(ex);
}
@@ -350,7 +350,7 @@ private:
// 握手成功之后的中途断开
_onRecv = nullptr;
if (auto strong_ref = _weak_delegate.lock()) {
strong_ref->onErr(ex);
strong_ref->onError(ex);
}
return;
}