[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:
Miguel de Icaza 2018-07-10 23:19:12 -04:00
Родитель 2fa768304e
Коммит aaae315db6
2 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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 ();
} }
} }