Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2010-06-24 16:30:34 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
67ab4feeb9ee8ab5764a81e06a181de282af1604
67ab4fee
1 parent
2428b3b7
Fix lock error, apparently @finally blocks execute after a return
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
67ab4fe
...
...
@@ -24,7 +24,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-6
6
2010-06-24"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-6
7
2010-06-24"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -597,7 +597,6 @@ static NSOperationQueue *sharedQueue = nil;
if
([
self
error
])
{
[
self
setComplete
:
YES
];
[
self
markAsFinished
];
[[
self
cancelledLock
]
unlock
];
return
;
}
...
...
@@ -605,7 +604,6 @@ static NSOperationQueue *sharedQueue = nil;
if
(
!
[
self
url
])
{
[
self
failWithError
:
ASIUnableToCreateRequestError
];
[[
self
cancelledLock
]
unlock
];
return
;
}
...
...
@@ -628,7 +626,6 @@ static NSOperationQueue *sharedQueue = nil;
request
=
CFHTTPMessageCreateRequest
(
kCFAllocatorDefault
,
(
CFStringRef
)[
self
requestMethod
],
(
CFURLRef
)[
self
url
],
[
self
useHTTPVersionOne
]
?
kCFHTTPVersion1_0
:
kCFHTTPVersion1_1
);
if
(
!
request
)
{
[
self
failWithError
:
ASIUnableToCreateRequestError
];
[[
self
cancelledLock
]
unlock
];
return
;
}
...
...
@@ -648,7 +645,6 @@ static NSOperationQueue *sharedQueue = nil;
// See if we should pull from the cache rather than fetching the data
if
([
self
cachePolicy
]
==
ASIOnlyLoadIfNotCachedCachePolicy
)
{
if
([
self
useDataFromCache
])
{
[[
self
cancelledLock
]
unlock
];
return
;
}
}
else
if
([
self
cachePolicy
]
==
ASIReloadIfDifferentCachePolicy
)
{
...
...
@@ -1501,7 +1497,6 @@ static NSOperationQueue *sharedQueue = nil;
}
[
progressLock
lock
];
[
ASIHTTPRequest
performSelector
:
selector
onTarget
:
indicator
withObject
:
nil
amount
:&
progressAmount
];
[
progressLock
unlock
];
}
...
...
Please
register
or
login
to post a comment