mirror of https://github.com/keeweb/keeweb.git
fix #1845: fixed an error during writing to closed socket
This commit is contained in:
parent
9b2c40a078
commit
29ae7e8ed2
|
@ -398,7 +398,11 @@ function sendMessageToSocket(socket, message) {
|
||||||
const lengthBytes = Buffer.from(lengthBuf);
|
const lengthBytes = Buffer.from(lengthBuf);
|
||||||
const data = Buffer.concat([lengthBytes, responseData]);
|
const data = Buffer.concat([lengthBytes, responseData]);
|
||||||
|
|
||||||
|
try {
|
||||||
socket.write(data);
|
socket.write(data);
|
||||||
|
} catch (e) {
|
||||||
|
logger.error(`Error writing to socket ${state.socketId}`, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendToRenderer(event, socketId, data) {
|
function sendToRenderer(event, socketId, data) {
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
Release notes
|
Release notes
|
||||||
-------------
|
-------------
|
||||||
|
##### v1.18.7 (2021-07-18)
|
||||||
|
`-` fix #1845: fixed a visible crash on socket write error
|
||||||
|
|
||||||
##### v1.18.6 (2021-05-19)
|
##### v1.18.6 (2021-05-19)
|
||||||
`-` fix #1824: saving KDBX3 files with compression disabled
|
`-` fix #1824: saving KDBX3 files with compression disabled
|
||||||
`-` fix #1818: extension connection error if browser cannot be identified
|
`-` fix #1818: extension connection error if browser cannot be identified
|
||||||
|
|
Loading…
Reference in New Issue