added isServing parameter
This commit is contained in:
parent
6cbd5bb017
commit
cc893b968b
4 changed files with 4 additions and 3 deletions
|
|
@ -523,8 +523,8 @@ proc SuggestWriteln*(s: string) =
|
|||
stdoutSocket.send(s & "\c\L")
|
||||
|
||||
proc SuggestQuit*() =
|
||||
if isNil(stdoutSocket): quit(0)
|
||||
else:
|
||||
if not isServing: quit(0)
|
||||
elif not isNil(stdoutSocket):
|
||||
stdoutSocket.send("\c\L")
|
||||
raise newException(ESuggestDone, "suggest done")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue