mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
fix npe
This commit is contained in:
@@ -29,8 +29,12 @@ class Protocol implements IMessagePassingProtocol {
|
||||
}
|
||||
|
||||
public send(message: any): void {
|
||||
this.socket.write(JSON.stringify(message));
|
||||
this.socket.write(Protocol.Boundary);
|
||||
try {
|
||||
this.socket.write(JSON.stringify(message));
|
||||
this.socket.write(Protocol.Boundary);
|
||||
} catch (e) {
|
||||
// noop
|
||||
}
|
||||
}
|
||||
|
||||
public onMessage(callback: (message: any) => void): void {
|
||||
|
||||
Reference in New Issue
Block a user