mac
2023-12-21 78dbac2e8e7ad58d9e5d6a025de0d6fc58f69146
app/src/main/java/com/hdl/photovoltaic/internet/HttpServer/MyNanoHttpService.java
@@ -21,6 +21,11 @@
        try {
            myNanoHttpServer.start();
        } catch (Exception e) {
//            if (serverSocket.isBound() && !serverSocket.isClosed()) {
//                // Port is available
//            } else {
//                // Port is not available
//            }
            e.printStackTrace();
            startService(new Intent(this, MyNanoHttpService.class));
        }