Ticket #8519: close_write_filetransfer.patch
File close_write_filetransfer.patch, 1.0 KB (added by , 14 years ago) |
---|
-
programs/mythbackend/mainserver.cpp
4209 4209 else if (command == "DONE") 4210 4210 { 4211 4211 ft->Stop(); 4212 4213 /* If this is a write file transfer, re-enable the callbacks. 4214 * This allows the MythSocket to get properly closed and 4215 * cleaned up from the fileTransferList. */ 4216 if (ft->isWriteMode()) 4217 ft->getSocket()->setCallbacks(this); 4218 4212 4219 retlist << "ok"; 4213 4220 } 4214 4221 else if (command == "REQUEST_BLOCK") -
programs/mythbackend/filetransfer.h
32 32 MythSocket *getSocket() { return sock; } 33 33 34 34 bool isOpen(void); 35 bool isWriteMode() { return writemode; } 35 36 36 37 void Stop(void); 37 38