diff recpt1/recpt1.c @ 110:d89f0da0a7e4

do not stuck on split_select() more than 4 sec.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 07 Mar 2010 20:10:18 +0900
parents 0a9406f92f32
children e915d31c5bd9
line wrap: on
line diff
--- a/recpt1/recpt1.c	Sat Mar 06 19:13:17 2010 +0900
+++ b/recpt1/recpt1.c	Sun Mar 07 20:10:18 2010 +0900
@@ -361,6 +361,12 @@
                         /* $BJ,N%BP>](BPID$B$,40A4$KCj=P$G$-$k$^$G=PNO$7$J$$(B
                          * 1$BICDxEYM>M5$r8+$k$H$$$$$+$b(B
                          */
+                        time_t cur_time;
+                        time(&cur_time);
+                        if(cur_time - data->start_time > 4) {
+                            use_splitter = FALSE;
+                            goto fin;
+                        }
                         break;
                     }
                 }