cdp/stdio: ignore writable
This commit is contained in:
parent
b2f5229bc8
commit
df59b2fb6a
@ -124,8 +124,7 @@ export default async ({ pipe: { pipeWrite, pipeRead } = {}, port }) => {
|
||||
pipeWrite.on('error', () => {}); // ignore write error, likely just closed
|
||||
|
||||
_send = data => {
|
||||
log('debug:', closed, !pipeWrite.writable);
|
||||
if (closed || !pipeWrite.writable) return new Error('CDP connection closed');
|
||||
if (closed) return new Error('CDP connection closed');
|
||||
|
||||
pipeWrite.write(data);
|
||||
pipeWrite.write('\0');
|
||||
|
Loading…
x
Reference in New Issue
Block a user