fix: write server response only for remote clients (#2290)
* fix: write server response only for remote clients * Update `CHANGELOG.md`
This commit is contained in:
1 parent
7727b28fbe
commit
18b6077248
6 files changed
+30
-32
No files matched your search
@@ -84,11 +84,11 @@ func (app *app) quit() {
|
||||
}
|
||||
}
|
||||
if !gSingleMode {
|
||||
if err := remote(fmt.Sprintf("drop %d", gClientID)); err != nil {
|
||||
if _, err := remote(fmt.Sprintf("drop %d", gClientID)); err != nil {
|
||||
log.Printf("dropping connection: %s", err)
|
||||
}
|
||||
if gOpts.autoquit {
|
||||
if err := remote("quit"); err != nil {
|
||||
if _, err := remote("quit"); err != nil {
|
||||
log.Printf("auto quitting server: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user