Fixed issue on async deflate

...o callback.  Reused the code from inflater.