Skip to content

Commit c5550cc

Browse files
committed
chore(server): close before flush
1 parent 18e65c0 commit c5550cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ func (srv *Server) Run(ctx context.Context) {
122122
for {
123123
select {
124124
case <-ctx.Done():
125+
srv.tcpCloser.Close()
126+
srv.udpCloser.Close()
125127
srv.Flush()
126128
return
127129
case <-ticker.C:

0 commit comments

Comments
 (0)