mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 14:10:47 +08:00
fix(devtools): disconnect ws when close
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user