diff --git a/server/quic_server.go b/server/quic_server.go index ba2fbe6..6889389 100644 --- a/server/quic_server.go +++ b/server/quic_server.go @@ -44,10 +44,10 @@ func (q *QuicServer) Start() { log.Fatal(err) } }() - log.Printf("Stopping QUIC server...") } func (q *QuicServer) Stop() { + log.Printf("Stopping QUIC server...") if err := q.server.Close(); err != nil { log.Printf("QUIC server forced to shutdown") } diff --git a/server/tcp_server.go b/server/tcp_server.go index e2b3838..0a4d11d 100644 --- a/server/tcp_server.go +++ b/server/tcp_server.go @@ -36,10 +36,10 @@ func (t *TCPServer) Start() { log.Fatal(err) } }() - log.Printf("Stopping TCP server...") } func (t *TCPServer) Stop() { + log.Printf("Stopping TCP server...") if err := t.server.Shutdown(t.ctx); err != nil { log.Printf("TCP server forced to shutdown: %s", err) } diff --git a/server/tls_server.go b/server/tls_server.go index 4d31f0c..dc269f0 100644 --- a/server/tls_server.go +++ b/server/tls_server.go @@ -37,10 +37,10 @@ func (t *TLSServer) Start() { log.Fatal(err) } }() - log.Printf("Stopping TLS server...") } func (t *TLSServer) Stop() { + log.Printf("Stopping TLS server...") if err := t.server.Shutdown(t.ctx); err != nil { log.Printf("TLS server forced to shutdown: %s", err) }