Mercurial > pt1
changeset 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 | 8a2a032bfa50 |
children | c8cfd684fee8 |
files | recpt1/recpt1.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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; } }