237
238
# It's possible the process has started but is not yet accepting
238
239
# connections. Wait a little while.
240
242
until = datetime.datetime.now() + as_timedelta(config.devmode.wait)
241
243
while datetime.datetime.now() < until:
244
246
config.mta.lmtp_host, int(config.mta.lmtp_port))
248
250
except socket.error as error:
249
251
if error[0] == errno.ECONNREFUSED: