Skip to content

Commit 7ca913a

Browse files
committed
The first command can be also QUIT
1 parent c650572 commit 7ca913a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (d *DiscoveryServer) Run(in io.Reader, out io.Writer) error {
124124
split := strings.Split(fullCmd, " ")
125125
cmd := strings.ToUpper(split[0])
126126

127-
if !d.initialized && cmd != "HELLO" {
127+
if !d.initialized && cmd != "HELLO" && cmd != "QUIT" {
128128
d.outputError("command_error", fmt.Sprintf("First command must be HELLO, but got '%s'", cmd))
129129
continue
130130
}

0 commit comments

Comments
 (0)