[Network] Do not dispose objects after the callback is over, that is too aggressive, perhaps do this for all other transient objects as well
This commit is contained in:
Родитель
2fa768304e
Коммит
aaae315db6
|
@ -187,7 +187,6 @@ namespace Network {
|
||||||
if (del != null){
|
if (del != null){
|
||||||
var x = new NWPath (path, owns: false);
|
var x = new NWPath (path, owns: false);
|
||||||
del (x);
|
del (x);
|
||||||
x.Dispose ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,7 +199,6 @@ namespace Network {
|
||||||
if (del != null){
|
if (del != null){
|
||||||
var nwconnection = new NWConnection (connection, owns: false);
|
var nwconnection = new NWConnection (connection, owns: false);
|
||||||
del (nwconnection);
|
del (nwconnection);
|
||||||
nwconnection.Dispose ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче