Use only one thread for receiving mails to avoid concurrency problems
This commit is contained in:
parent
08ac3aa539
commit
a6dd7c731a
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ namespace :foodsoft do
|
|||
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
|
||||
host = ENV['SMTP_SERVER_HOST']
|
||||
rake_say "Started SMTP server for incoming email on port #{port}."
|
||||
server = FoodsoftMailReceiver.new port, host
|
||||
server = FoodsoftMailReceiver.new port, host, 1
|
||||
server.start
|
||||
server.join
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue