commit | 6fcba313e9ad5566aa55316f2dde5940dd5ca5b4 | [log] [tgz] |
---|---|---|
author | Chih-Chung Chang <chihchung@google.com> | Wed Jun 24 13:44:37 2009 +0800 |
committer | Chih-Chung Chang <chihchung@google.com> | Wed Jun 24 15:50:57 2009 +0800 |
tree | 7f9b1333f7a7f593f5e0698a9b03dddaaf8bc119 | |
parent | 4133751d51a04172aa65e24658b4207ef764de91 [diff] |
Fix 1933269: startPreview failed. The reason we need this count is a new CameraService::connect() request may come in while the previous Client's destructor has not been run or is still running. If the last strong reference of the previous Client is gone but destructor has not been run, we should not allow the new Client to be created because we need to wait for the previous Client to tear down the hardware first.