Skip to content

Commit

Permalink
Fixes #238
Browse files Browse the repository at this point in the history
Check if value is nil.
  • Loading branch information
emsquared committed Jun 5, 2012
1 parent 8e5d295 commit 145d274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/IRC/IRCConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ - (void)tcpClientDidReceiveData:(TCPClient *)sender
while (1 == 1) {
NSData *data = [conn readLine];

if (NSObjectIsEmpty(data)) break;
if (data == nil) break;

if ([delegate respondsToSelector:@selector(ircConnectionDidReceive:)]) {
[delegate ircConnectionDidReceive:data];
Expand Down

0 comments on commit 145d274

Please sign in to comment.