RestKit/RestKit — Issue #525: _timeoutTimer is set twice in RKRequest.m
Author: k1th
Created: 2012-01-24 12:32:09+00:00
State: open

In

```- (void)sendAsynchronously {```

line 426:
```_timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:self.timeoutInterval target:self selector:@selector(timeout) userInfo:nil repeats:NO];```

it then calls
```[self fireAsynchronousRequest];```

In line 386 in fireAsynchronousRequest:
```_timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:self.timeoutInterval target:self selector:@selector(timeout) userInfo:nil repeats:NO];```

This overwrites the ivar so you have a timer, that will fire and cannot be invalidated anymore.

This leads to EXC_BAD_ACCESS.