Hopefully fix that sometimes key is not accepted
Most likely this is a race condition...
This commit is contained in:
parent
a8a43f8708
commit
ea7b6f4089
@ -96,6 +96,11 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
client = null;
|
||||
}
|
||||
|
||||
if (key == '') {
|
||||
// make sure, the key is loaded
|
||||
await obtainKeyPair();
|
||||
}
|
||||
|
||||
setState(() {
|
||||
_output = null;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user