changeset 181:64c745b681a3

revert "m->opened = FALSE" patch, because wrong
author ray@terran.dlink.ua
date Wed, 06 Jul 2011 12:31:54 +0300
parents adee224d5883
children 0e2536a0af73
files contrib/mpd/src/modem.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/mpd/src/modem.c	Tue Jul 05 12:39:40 2011 +0300
+++ b/contrib/mpd/src/modem.c	Wed Jul 06 12:31:54 2011 +0300
@@ -255,10 +255,8 @@
     }
 
     /* Open and configure serial port */
-    if ((m->fd = OpenSerialDevice(l->name, m->device, m->speed)) < 0) {
-	m->opened = FALSE;
+    if ((m->fd = OpenSerialDevice(l->name, m->device, m->speed)) < 0)
         goto fail;
-    }
 
     /* If connecting, but no connect script, then skip chat altogether */
     if (m->opened && !*m->connScript) {