mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 10:27:27 +00:00 
			
		
		
		
	Merge pull request #339 from ybs-github/master
catch exception thrown by `close()` inside `open()`
This commit is contained in:
		
						commit
						5519182256
					
				| @ -102,7 +102,9 @@ public abstract class CommonUsbSerialPort implements UsbSerialPort { | ||||
|             mUsbRequest = new UsbRequest(); | ||||
|             mUsbRequest.initialize(mConnection, mReadEndpoint); | ||||
|         } catch(Exception e) { | ||||
|             try { | ||||
|                 close(); | ||||
|             } catch(Exception ignored) {} | ||||
|             throw e; | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user