Skip to content

Conversation

@opficdev
Copy link
Collaborator

@opficdev opficdev commented Feb 5, 2026

🔗 연관된 이슈

📝 작업 내용

📌 요약 && 🔍 상세

  • sendCaptureComplete()를 호출했습니다
  • S022 찬양
image

@opficdev opficdev added this to the WEEK05 milestone Feb 5, 2026
@opficdev opficdev self-assigned this Feb 5, 2026
@opficdev opficdev added the 🐞 fix 버그 수정 label Feb 5, 2026
Copy link
Collaborator

@YunDaeHyeon YunDaeHyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 PR Code Review Report

🔍 Summary

변경 사항은 cameraManager가 모든 사진 저장을 완료했을 때 워치 연결 관리자에게 캡처 완료 신호를 보내는 기능을 추가하는 것입니다. 기존의 안전한 동시성 처리 패턴을 따르고 있으며, 전반적으로 의도된 기능 추가로 보이며 심각한 위험은 없어 보입니다.

⚠️ Key Issues

발견된 심각한 문제는 없습니다.

🛠 Improvement Suggestions

  • watchConnectionManager?.sendCaptureComplete() 메서드가 메인 스레드(Main Actor)에서 호출되는 것에 대한 잠재적인 스레딩 고려사항이 있습니다. 대부분의 워치 연결 관리자 send 메서드는 스레드 안전하거나 내부적으로 백그라운드 스레드로 디스패치하지만, WatchConnectionManager의 구현이 메인 스레드 외부에서의 호출을 필수적으로 요구하는 경우라면 해당 메서드 호출을 Task.detached 등으로 분리하는 것을 고려할 수 있습니다. 현재로서는 일반적인 패턴에 따라 문제가 없을 것으로 예상됩니다.

✅ Positive Observations

  • Task { @MainActor in ... }를 사용하여 cameraManager의 콜백에서 UI 관련 및 상태 업데이트 로직이 항상 메인 스레드에서 안전하게 실행되도록 처리한 점은 올바른 동시성 관리입니다.
  • [weak self]와 옵셔널 체이닝(self?., ?)을 사용하여 잠재적인 메모리 누수와 런타임 크래시를 방지한 점은 견고한 코딩 스타일입니다.
  • 새로 추가된 watchConnectionManager?.sendCaptureComplete() 호출이 기존의 관련 로직(sendCommand, reduce)과 함께 논리적인 순서로 배치되어 있습니다.

Copy link
Collaborator

@sangYuLv sangYuLv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

돌아왔구나...
감사합니다... 👍👍👍

Copy link
Collaborator

@YunDaeHyeon YunDaeHyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GRJeon GRJeon merged commit d4b7cea into develop Feb 5, 2026
2 checks passed
@GRJeon GRJeon deleted the fix/#311-watch-result branch February 5, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

촬영 후 워치에 완료뷰가 뜨지 않는 문제를 해결한다

4 participants