public static void clean() {
        try {
            if (singleServer != null) {
                singleServer.shutdown();
            }
        } catch (Exception e) {
            // do nothing
        }
        singleServer = null;
        httpClient = null;
        try {
            getHttpCollector().clean0();
        } catch (Exception e) {
            e.printStackTrace();
        }
        httpCollector = null;
    }
public static void clean ( ) { try { if ( singleServer != null ) { singleServer . shutdown ( ) ; } } catch ( Exception e ) { } singleServer = null ; httpClient = null ; try { getHttpCollector ( ) . clean0 ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } httpCollector = null ; }
清理操作。
若需更改 isRecord、isUpload 的值，请在此方法调用前修改。