[corlib] Protect against multiple invocation of FromAsync result code. Fix #7965.
authorJeremie Laval <jeremie.laval@gmail.com>
Fri, 16 Nov 2012 11:32:24 +0000 (11:32 +0000)
committerJeremie Laval <jeremie.laval@gmail.com>
Fri, 16 Nov 2012 11:36:41 +0000 (11:36 +0000)
commit94f551d46357c4a71f0108169ac65a3615cda686
treef94ec0fb8196af68fec5ff4d9fe593e772470e75
parenteb440e5454af863ab976fc3314eda727efcb108b
[corlib] Protect against multiple invocation of FromAsync result code. Fix #7965.

For some weird reason, it seems the end callback can be called multiple times by some async result.
mcs/class/corlib/System.Threading.Tasks/TaskFactory_T.cs