From e7ce7bca2ddc76c39cb880c4d2fa815ee0b9008a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=A4=A7=E5=BE=B7?= Date: Tue, 10 Oct 2023 16:08:24 +0800 Subject: [PATCH] -- --- src/android/cordova/plugin/jcprinter/JcPrinter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/android/cordova/plugin/jcprinter/JcPrinter.java b/src/android/cordova/plugin/jcprinter/JcPrinter.java index 13a2889..11f05db 100644 --- a/src/android/cordova/plugin/jcprinter/JcPrinter.java +++ b/src/android/cordova/plugin/jcprinter/JcPrinter.java @@ -346,9 +346,6 @@ public class JcPrinter extends CordovaPlugin { private void connectPrinter(JSONArray args, CallbackContext callbackContext) throws JSONException { JSONObject obj = args.getJSONObject(0); String address = obj.getString("address"); - if(Util.isConnection() == 0){ - Util.close(); - } int connectResult = Util.openPrinter(address); cordova.getActivity().runOnUiThread(() -> { String hint = "";