nimsuggest: fix tcp socket leak for epc backend (#12384) [backport]
Same as e9fa4c9b9c, but for the epc
backend which is used by emacs and vscode plugin.
Since the EPC backend only deal with one connection per nimsuggest
instance, only one socket is leaked, thus not as servere as with the tcp
backend.
This commit is contained in:
parent
7c23522b29
commit
edb24b7ce0
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ proc replEpc(x: ThreadParams) {.thread.} =
|
||||||
echo port
|
echo port
|
||||||
stdout.flushFile()
|
stdout.flushFile()
|
||||||
|
|
||||||
var client = newSocket()
|
var client: Socket
|
||||||
# Wait for connection
|
# Wait for connection
|
||||||
accept(server, client)
|
accept(server, client)
|
||||||
while true:
|
while true:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue