app/src/main/java/com/example/multiprotocoldatatransfer/AcceptThread.java
public void cancel() {
        try {
            mmServerSocket.close();
        } catch (IOException e) {
            Log.e("Printing", "Could not close the connect socket", e);
        }
    }
// Closes the connect socket and causes the thread to finish.
Closes the connect socket and causes the thread to finish.
Closes the connect socket and causes the thread to finish .
public void cancel() {
        try {
            mmServerSocket.close();
        } catch (IOException e) {
            Log.e("Printing", "Could not close the connect socket", e);
        }
    }
public void cancel ( ) { try { mmServerSocket . close ( ) ; } catch ( IOException e ) { Log . e ( "Printing" , "Could not close the connect socket" , e ) ; } }
Closes the connect socket and causes the thread to finish.
Closes the connect socket and causes the thread to finish .