Correct some small bugs

This commit is contained in:
Guillaume DOTT 2013-10-03 11:38:45 +02:00
parent b8ce20f350
commit 9ef1b9327d
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ module SMSd
sms.phone_number, sms.type_of_address)
end
end
modem.modem.close
modem.close
end
private
@ -61,7 +61,7 @@ module SMSd
def phone_numbers
@phone_numbers ||= modem.phone_numbers
rescue Biju::AT::CmeError
nil
[]
end
def handle_message(sms)

View File

@ -17,7 +17,7 @@ module SMSd
options[:daemonize] = daemon
end
opts.on('-l', '--log-file', 'Define log file') do |logfile|
opts.on('-l', '--log-file FILE', 'Define log file') do |logfile|
options[:logfile] = logfile
end

View File

@ -5,7 +5,7 @@ module SMSd::Util
end
def write(*args)
@targets.each { |t| t.write(*args) }
@targets.each { |t| t.write(*args); t.flush }
end
def close