Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: close server error
  • Loading branch information
Hiram-Wong committed Jul 29, 2025
commit 1cdc45740c8b5ede5efc28cec99fde2df3078e66
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const start = async () => {
// 停止服务
const stop = async () => {
try {
await fastify.close(); // 关闭服务器
await fastify.server.close(); // 关闭服务器
console.log('Server stopped gracefully');
} catch (err) {
fastify.log.error('Error while stopping the server:', err);
Expand Down