diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-08 17:20:04 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-08 17:20:04 +0000 |
commit | 101a3bada47f2174857b0e1ebd9e53d1fa5533a5 (patch) | |
tree | d10f0595459adbc04eec958eb998166e0d9c6d95 /main | |
parent | 6adf679c4a4129a932530fc3c8e9f84723278e1f (diff) |
Merged revisions 238583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r238583 | jpeeler | 2010-01-08 11:18:41 -0600 (Fri, 08 Jan 2010) | 5 lines
Stop trying to find a parking space after traversing the parkinglot one time.
(closes issue #16428)
Reported by: Yasuhiro Konishi
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@238586 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/features.c b/main/features.c index cdedb9664..87fb68fc6 100644 --- a/main/features.c +++ b/main/features.c @@ -635,7 +635,7 @@ static struct parkeduser *park_space_reserve(struct ast_channel *chan, for (i = start; 1; i++) { if (i == parkinglot->parking_stop + 1) { i = parkinglot->parking_start - 1; - continue; + break; } AST_LIST_TRAVERSE(&parkinglot->parkings, cur, list) { @@ -643,8 +643,7 @@ static struct parkeduser *park_space_reserve(struct ast_channel *chan, break; } } - - if (!cur || i == start - 1) { + if (!cur) { parking_space = i; break; } |