mutt_error (_("Error talking to %s (%s)"), conn->account.host,
strerror (errno));
mutt_sleep (2);
- } else if (errno == EINTR) {
- rc = -1;
- mutt_error (_("Error talking to %s (%s)"), conn->account.host,
- strerror (errno));
- mutt_sleep (2);
- }
+ SigInt = 0;
+ }
mutt_allow_interrupt (0);
+ if (SigInt)
+ {
+ mutt_error (_("Connection to %s has been aborted"), conn->account.host);
+ mutt_sleep (2);
+ SigInt = 0;
+ rc = -1;
+ }
+
return rc;
}
mutt_error (_("Error talking to %s (%s)"), conn->account.host,
strerror (errno));
mutt_sleep (2);
- } else if (errno == EINTR) {
- rc = -1;
- mutt_error (_("Error talking to %s (%s)"), conn->account.host,
- strerror (errno));
- mutt_sleep (2);
+ SigInt = 0;
}
mutt_allow_interrupt (0);
+ if (SigInt)
+ {
+ mutt_error (_("Connection to %s has been aborted"), conn->account.host);
+ mutt_sleep (2);
+ SigInt = 0;
+ rc = -1;
+ }
+
return rc;
}