mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix: implement code review suggestions
Address all feedback from PR review: - Lock granularity - Empty response handling - Shutdown race condition - Interface naming
This commit is contained in:
@@ -211,10 +211,10 @@ func gatewayCmd() {
|
||||
<-sigChan
|
||||
|
||||
fmt.Println("\nShutting down...")
|
||||
cancel()
|
||||
if cp, ok := provider.(providers.SessionProvider); ok {
|
||||
if cp, ok := provider.(providers.StatefulProvider); ok {
|
||||
cp.Close()
|
||||
}
|
||||
cancel()
|
||||
healthServer.Stop(context.Background())
|
||||
deviceService.Stop()
|
||||
heartbeatService.Stop()
|
||||
|
||||
Reference in New Issue
Block a user