Skip to content

An open-source, faster Devin alternative

TypeScript

remove force stop

Brian Reardoncdc37dfbb5e9
diff --git a/internal/agent/server.go b/internal/agent/server.go
index 3d9cf084..196c8330 100644
--- a/internal/agent/server.go
+++ b/internal/agent/server.go
@@ -100,19 +100,6 @@ func (s *Server) GracefulStop() {
gs.GracefulStop()
}
}
-
-// ForceStop immediately stops the gRPC server, closing all connections.
-// Used before savevm to ensure the active virtio-serial connection is torn down
-// synchronously, so onClose fires and active=false before the snapshot.
-func (s *Server) ForceStop() {
- s.mu.Lock()
- gs := s.grpcServer
- s.mu.Unlock()
- if gs != nil {
- gs.Stop()
- }
-}
-
// GetVersion returns the agent's build version.
func (s *Server) GetVersion(ctx context.Context, req *pb.GetVersionRequest) (*pb.GetVersionResponse, error) {
return &pb.GetVersionResponse{Version: s.version}, nil