Fix HTTP connectors not exiting on stream end.

This commit is contained in:
Thulinma 2012-08-09 01:50:34 +02:00
parent c4d0bd9691
commit 41d24ceee1
2 changed files with 2 additions and 0 deletions

View file

@ -206,6 +206,7 @@ namespace Connector_HTTP{
FlashBuf.append(tag.data, tag.len); FlashBuf.append(tag.data, tag.len);
} }
} }
if (!ss.connected()){break;}
} }
} }
conn.close(); conn.close();

View file

@ -118,6 +118,7 @@ namespace Connector_HTTP{
conn.Send(std::string(tag.data, tag.len));//write the tag contents conn.Send(std::string(tag.data, tag.len));//write the tag contents
} }
} }
if (!ss.connected()){break;}
} }
} }
conn.close(); conn.close();