fix closing of event subscription

This commit is contained in:
Sebastian Sdorra
2019-12-17 09:30:21 +01:00
parent cdeb70c62c
commit a2deec15e2

View File

@@ -241,7 +241,7 @@ class ApiClient {
es.addEventListener(type, listeners[type]);
}
return es.close;
return () => es.close();
}
}