Skip to content

Commit ec36df3

Browse files
committed
fully close the socket connection on detach
1 parent de0c91f commit ec36df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attach.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export async function attach<ApiInfo extends BaseEvents = BaseEvents>({
198198
requestHandlers.set(method as string, callback);
199199
},
200200
detach() {
201-
nvimSocket.end();
201+
nvimSocket.destroy();
202202
},
203203
};
204204
}

0 commit comments

Comments
 (0)