Skip to content

Commit 87e63bc

Browse files
committed
BUG/MINOR: maps: MapQuitChan hangs when no sync maps initiated
1 parent 719e8b3 commit 87e63bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configure_data_plane.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,13 @@ func checkPassword(pass, storedPass string) bool {
553553
}
554554

555555
func serverShutdown() {
556+
cfg := dataplaneapi_config.Get()
556557
if logFile != nil {
557558
logFile.Close()
558559
}
559-
MapQuitChan <- MapQuitNotice{}
560+
if cfg.HAProxy.UpdateMapFiles {
561+
MapQuitChan <- MapQuitNotice{}
562+
}
560563
}
561564

562565
func configureNativeClient(haproxyOptions dataplaneapi_config.HAProxyConfiguration, mWorker bool) *client_native.HAProxyClient {

0 commit comments

Comments
 (0)