From: Felix Dörre Date: Thu, 4 Aug 2016 20:48:48 +0000 (+0200) Subject: upd: correct internal method name "ensureLocalConnection" X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=40a4fe0ef3532719a03db0cc29a319b998a31d3e upd: correct internal method name "ensureLocalConnection" Change-Id: I34074e8a9f8b425df85ca149bc76c608df64d3fb --- diff --git a/util-testing/org/cacert/gigi/email/TestEmailProvider.java b/util-testing/org/cacert/gigi/email/TestEmailProvider.java index ab1fa37b..91c04405 100644 --- a/util-testing/org/cacert/gigi/email/TestEmailProvider.java +++ b/util-testing/org/cacert/gigi/email/TestEmailProvider.java @@ -35,7 +35,7 @@ public class TestEmailProvider extends DelegateMailProvider { @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; } @@ -57,7 +57,7 @@ public class TestEmailProvider extends DelegateMailProvider { } } - private boolean assureLocalConnection() throws IOException { + private boolean ensureLocalConnection() throws IOException { if (out != null) { try { out.writeUTF("ping"); @@ -81,7 +81,7 @@ public class TestEmailProvider extends DelegateMailProvider { @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 {