Ejemplo n.º 1
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _disposed = true;
            // FIXME: Ensure everything is written to disk before killing the mainloop.
            IOLoop.QueueWait((MainLoopTask)_writer.Dispose);
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            disposed = true;
            MainLoop.QueueWait(() =>
            {
                dhtEngine.Dispose();
                diskManager.Dispose();
                listenManager.Dispose();
                localPeerListener.Stop();
                localPeerManager.Dispose();
                MainLoop.Dispose();
            });
        }