mauzel / mproxy-gbf

GRANBLUE FANTASY CACHING PROXY
MIT License
4 stars 6 forks source link

Issue #3 - detect and delete 0 byte files #4

Closed mauzel closed 7 years ago

mauzel commented 7 years ago

Fixes Issue #3 by deleting 0 byte cache files.

A quick hack. A better fix would be to just check if the data stream is 0 bytes and never attempt a write, but this method is good enough. Performance-wise, the effect is negligible since writing cache files to disk happens in a thread.