Fixed closing of stream on transfer.

This commit is contained in:
Michael Jumper
2010-09-23 09:54:17 +00:00
parent 520d4cb789
commit 7bbc9b5ae5
3 changed files with 8 additions and 1 deletions

View File

@@ -60,6 +60,12 @@ void guac_close(GUACIO* io) {
free(io);
}
void guac_close_final(GUACIO* io) {
guac_flush(io);
close(io->fd);
free(io);
}
/* Write bytes, limit rate */
ssize_t __guac_write(GUACIO* io, const char* buf, int count) {