[svn-commits] mattf: trunk r136 - /trunk/mtp2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Nov 17 17:48:42 CST 2007


Author: mattf
Date: Sat Nov 17 17:48:42 2007
New Revision: 136

URL: http://svn.digium.com/view/libss7?view=rev&rev=136
Log:
Hopefully the last update for making links automatically reconnect

Modified:
    trunk/mtp2.c

Modified: trunk/mtp2.c
URL: http://svn.digium.com/view/libss7/trunk/mtp2.c?view=diff&rev=136&r1=135&r2=136
==============================================================================
--- trunk/mtp2.c (original)
+++ trunk/mtp2.c Sat Nov 17 17:48:42 2007
@@ -686,7 +686,10 @@
 int mtp2_start(struct mtp2 *link, int emergency)
 {
 	link->emergency = emergency;
-	return mtp2_setstate(link, MTP_NOTALIGNED);
+	if (link->state == MTP_IDLE)
+		return mtp2_setstate(link, MTP_NOTALIGNED);
+	else
+		return 0;
 }
 
 int mtp2_stop(struct mtp2 *link)




More information about the svn-commits mailing list