git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now it crashes!
[ITFoundation.git]
/
ITInetSocket.m
diff --git
a/ITInetSocket.m
b/ITInetSocket.m
index
0719779
..
c51c05a
100755
(executable)
--- a/
ITInetSocket.m
+++ b/
ITInetSocket.m
@@
-237,13
+237,13
@@
[(id)dp finishedConnecting:self];
lstart:
[(id)dp finishedConnecting:self];
lstart:
- while (!actionflag && ![writePipe availableDataLength])
+ while (!actionflag && ![writePipe availableDataLength]
&& !dieflag
)
{
NSData *d;
readLen = recv(sockfd,buf,bufs,0);
if (readLen) {
d = [NSData alloc];
{
NSData *d;
readLen = recv(sockfd,buf,bufs,0);
if (readLen) {
d = [NSData alloc];
- [d initWithBytesNoCopy:buf length:readLen];
+ [d initWithBytesNoCopy:buf length:readLen
freeWhenDone:NO
];
[readPipe writeData:d];
[d release];
[(id)dp dataReceived:self];
[readPipe writeData:d];
[d release];
[(id)dp dataReceived:self];