efl_io_copier: work around efl_future weirdness.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 27 Oct 2016 01:17:10 +0000 (23:17 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 27 Oct 2016 01:19:46 +0000 (23:19 -0200)
commit574e4b8ad56b0cced409417f76e90205fb28fe22
tree6b93e11434c0a7df258f9254e007ce97cc847a1c
parentfa3a2e6489deb7bbfc7772c4facf4cc27fb73a46
efl_io_copier: work around efl_future weirdness.

The pointer given to efl_future_use() should be NULL-ified before
calling my function, since that pointer has no meaning anymore.

The copier relied on pd->job being NULL to avoid useless rescheduling,
it was being reached with non-null, but that pointer is no longer
useful.

Moreover, I'm not sure if the second pointer, with the new future
won't be modified to NULL when the efl_future continues :-(
src/lib/ecore/efl_io_copier.c