fix a use after dispose exception (#845)
fix a use after dispose exception (#845)

* fix a use after dispose exception

* use a better polling API

flutter/flutter-intellij,flutter/flutter-intellij,flutter/flutter-intellij,flutter/flutter-intellij,flutter/flutter-intellij