Correct some small bugs
This commit is contained in:
parent
b8ce20f350
commit
9ef1b9327d
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user