Code example for Socket

Methods: isClosed

0
		 
		if (Looper.myLooper() == null) {
			Looper.prepare();
		} 
        		 
		if (mSocket == null || mSocket.isClosed()) {
			Logger.warn("Socket was null or closed when trying to serve thread!"); 
			return; 
		} 
		 
		// Trigger event 
		triggerRequestErrorEvent(null); 
		 
		writeStatus(mSocket, mStatusCode);
 
	} 
 
}