Update pipe-ipc.js

This commit is contained in:
Namhyeon Go 2022-09-27 17:48:00 +09:00 committed by GitHub
parent 37ce45c983
commit a3e407b3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,17 +45,17 @@ function PipeIPC() {
};
this.write = function(message) {
var isWrote = false;
var isWritten = false;
while (!isWrote) {
while (!isWritten) {
try {
this.createWriter();
this.writer.Write(message);
sleep(1);
this.writer.Close();
isWrote = true;
isWritten = true;
} catch (e) {
isWrote = false;
isWritten = false;
}
}
};