Change-Id: I34074e8a9f8b425df85ca149bc76c608df64d3fb
@Override
public synchronized void sendMail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
while (true) {
@Override
public synchronized void sendMail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
while (true) {
- if ( !assureLocalConnection() && getTarget() != null) {
+ if ( !ensureLocalConnection() && getTarget() != null) {
super.sendMail(to, subject, message, from, replyto, toname, fromname, errorsto, extra);
return;
}
super.sendMail(to, subject, message, from, replyto, toname, fromname, errorsto, extra);
return;
}
- private boolean assureLocalConnection() throws IOException {
+ private boolean ensureLocalConnection() throws IOException {
if (out != null) {
try {
out.writeUTF("ping");
if (out != null) {
try {
out.writeUTF("ping");
@Override
public synchronized String checkEmailServer(int forUid, String address) throws IOException {
while (true) {
@Override
public synchronized String checkEmailServer(int forUid, String address) throws IOException {
while (true) {
- if ( !assureLocalConnection() && getTarget() != null) {
+ if ( !ensureLocalConnection() && getTarget() != null) {
return super.checkEmailServer(forUid, address);
}
try {
return super.checkEmailServer(forUid, address);
}
try {