Stopping HTTPListener is in netcore different

This commit is contained in:
2019-12-10 15:20:50 +01:00
parent 3e79b425a5
commit 1a33d2ef0a
+3
View File
@@ -144,7 +144,10 @@ namespace BlubbFish.Utils.IoT.Bots {
}
public override void Dispose() {
if(this.httplistener.IsListening) {
this.httplistener.Stop();
}
this.httplistener.Close();
if(this.databackend != null) {
this.databackend.Dispose();