ETSGlobal / ETSPaymentOgoneBundle

An Ogone provider for JMSPaymentCoreBundle
12 stars 16 forks source link

Input streams not closed when accessed from another thread #58

Closed danieleplgr84 closed 8 years ago

danieleplgr84 commented 8 years ago

Sometimes when calling a method to decode an image into Bitmap (ex: BitmapFactory.decodeStream(...) ) in a thread it is possible that the stream is already open. It seems to happen because in some methods (for example "processContentProviderMedia" ) the

"process();" async method execs before the

} finally { close(inputStream); close(outStream); }

that should close the stream.

The solution seems to be to move the process() line after the finally block and it should works fine.

ch3ric commented 8 years ago

Hello, I don't think this issue is related to our bundle. So I close this issue, but do not hesitate to re-open and add more details if it is relevant.