]> WPIA git - gigi.git/commitdiff
upd: correct internal method name "ensureLocalConnection"
authorFelix Dörre <felix@dogcraft.de>
Thu, 4 Aug 2016 20:48:48 +0000 (22:48 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 4 Aug 2016 20:50:10 +0000 (22:50 +0200)
Change-Id: I34074e8a9f8b425df85ca149bc76c608df64d3fb

util-testing/org/cacert/gigi/email/TestEmailProvider.java

index ab1fa37bf5a0ab0e6b16c7778ea8f43101a38ab9..91c0440504e7c46c259dbc5da1807045b32e3415 100644 (file)
@@ -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 {