fix(devtools): disconnect ws when close

This commit is contained in:
ivanfanwu
2022-07-25 13:16:58 +08:00
committed by zoomchan-cxj
parent 55c26f6401
commit c827e8c54b
@@ -1141,6 +1141,9 @@ static const char CRLFCRLFBytes[] = { '\r', '\n', '\r', '\n' };
BOOL didWork = NO;
if (self.readyState >= HippySR_CLOSING) {
dispatch_async(_workQueue, ^{
[self _disconnect];
});
return didWork;
}