private void Quit() { Console.WriteLine(ref_count); if (--ref_count >= 1) { return; } Inotify.Stop(); Gtk.Application.Quit(); }
///////////////////////////////////////////////////////////////////////////// private static void OnShutdown() { #if ENABLE_AVAHI zeroconf.Dispose(); #endif // Stop our Inotify threads Inotify.Stop(); // Stop the global scheduler and ask it to shutdown Scheduler.Global.Stop(true); // Stop the messaging server if (server != null) { server.Stop(); } }