Merge pull request #12 from dext0r/master

Fix multiline command end marker for OpenVox GSM Gateway
master
Randall Degges 2015-07-15 12:56:01 -07:00
commit 0d3b579259
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ class Manager(object):
line.split(':', 1)[1].strip() == 'Follows': line.split(':', 1)[1].strip() == 'Follows':
wait_for_marker = True wait_for_marker = True
# same when seeing end of multiline response # same when seeing end of multiline response
if multiline and line.startswith('--END COMMAND--'): if multiline and (line.startswith('--END COMMAND--') or line.strip().endswith('--END COMMAND--')):
wait_for_marker = False wait_for_marker = False
multiline = False multiline = False
# same when seeing end of status response # same when seeing end of status response