Jeff Laing avatar Jeff Laing committed 8042131

Oops, didn't quite have arguments to AFCConnectionPerformOperation() correct. There is a
timeout parameter as well.

Comments (0)

Files changed (1)

MobileDeviceAccess.m

 
 // New style - seems to formalise the creation of the "request packet" seperately
 // from the execution.
-afc_error_t AFCConnectionProcessOperation(afc_connection a1, afc_operation op);
+afc_error_t AFCConnectionProcessOperation(afc_connection a1, afc_operation op, double timeout);
 afc_error_t AFCOperationGetResultStatus(afc_operation op);
 CFTypeRef AFCOperationGetResultObject(afc_operation op);
 CFTypeID AFCOperationGetTypeID(afc_operation op);
 - (bool)processOp:(afc_operation)op from:(const char *)func
 {
 	BOOL result = NO;
-	if ([self checkStatus:AFCConnectionProcessOperation(_afc, op) from:"AFCConnectionProcessOperation"]) {
+	if ([self checkStatus:AFCConnectionProcessOperation(_afc, op, AFCConnectionGetIOTimeout(_afc)) from:"AFCConnectionProcessOperation"]) {
 		afc_error_t e = AFCOperationGetResultStatus(op);
 		if (e == 0) {
 			[self clearLastError];
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.