Mercurial > mplayer.hg
comparison stream/stream_ftp.c @ 35337:6641819c8f45
stream ftp: Only send QUIT command if connected
Do not attempt to send commands without control connections.
author | al |
---|---|
date | Tue, 20 Nov 2012 22:20:52 +0000 |
parents | 9c334690f765 |
children | 4fe8922d6242 |
comparison
equal
deleted
inserted
replaced
35336:9c334690f765 | 35337:6641819c8f45 |
---|---|
398 if(s->fd >= 0) { | 398 if(s->fd >= 0) { |
399 closesocket(s->fd); | 399 closesocket(s->fd); |
400 s->fd = -1; | 400 s->fd = -1; |
401 } | 401 } |
402 | 402 |
403 FtpSendCmd("QUIT",p,NULL); | 403 if (p->handle >= 0) { |
404 | 404 FtpSendCmd("QUIT", p, NULL); |
405 if(p->handle >= 0) closesocket(p->handle); | 405 closesocket(p->handle); |
406 } | |
407 | |
406 free(p->buf); | 408 free(p->buf); |
407 | 409 |
408 m_struct_free(&stream_opts,p); | 410 m_struct_free(&stream_opts,p); |
409 } | 411 } |
410 | 412 |