File tree Expand file tree Collapse file tree
dConnectDevicePlugin/dConnectDeviceTheta/dConnectDeviceTheta/Classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ - (instancetype)init
8484 [_ptpConnection setLoglevel: PTPIP_LOGLEVEL_ERROR];
8585 [_ptpConnection setEventListener: self ];
8686
87- [ self updateManageServices: YES ];
87+
8888 _session =nil ;
8989
9090 // Reachabilityの初期処理
@@ -196,6 +196,7 @@ - (PtpIpSession*)session {
196196- (BOOL )connect
197197{
198198 if ([_ptpConnection connected ]) {
199+ [self updateManageServices: YES ];
199200 return YES ;
200201 }
201202 __block BOOL result = NO ;
@@ -215,7 +216,7 @@ - (BOOL)connect
215216 dispatch_semaphore_wait (semaphore, timeout);
216217
217218 [self setImageSize: CGSizeMake (2048 ,1024 )];
218-
219+ [ self updateManageServices: YES ];
219220 return result;
220221
221222}
@@ -230,7 +231,7 @@ - (void)disconnect
230231 dispatch_semaphore_signal (semaphore);
231232 }];
232233 dispatch_semaphore_wait (semaphore, timeout);
233-
234+ [ self updateManageServices: NO ];
234235}
235236
236237// 初期値の更新
You can’t perform that action at this time.
0 commit comments