1 Commits
Author SHA1 Message Date
BlubbFish 1a33d2ef0a Stopping HTTPListener is in netcore different 2019-12-10 15:20:50 +01:00
+4 -1
View File
@@ -144,7 +144,10 @@ namespace BlubbFish.Utils.IoT.Bots {
} }
public override void Dispose() { public override void Dispose() {
this.httplistener.Stop(); if(this.httplistener.IsListening) {
this.httplistener.Stop();
}
this.httplistener.Close(); this.httplistener.Close();
if(this.databackend != null) { if(this.databackend != null) {
this.databackend.Dispose(); this.databackend.Dispose();