Changeset [3c95b200b545d1e63c6c01abc33b76ab17ef83d6] by Joseph Heenan

August 6th, 2013 @ 02:28 PM

Issue #370: Fix problem where stream errors would not be detected

It seems the comparison has always been against the wrong enum, so the check would never trigger previously.

The latest llvm issues a warning like this:
ASIDataDecompressor.m:161:34: Comparison of constant 'NSStreamEventErrorOccurred' (8) with expression of type 'NSStreamStatus' (aka 'enum NSStreamStatus') is always false

[patch from github user 'OpenFibers', thanks!]

Committed by Joseph Heenan

  • M Classes/ASIDataCompressor.m
  • M Classes/ASIDataDecompressor.m
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone