Commits

hindlemail  committed 7c155b4

stop polling

  • Participants
  • Parent commits ce83a1e

Comments (0)

Files changed (1)

File GtkWrapper.cs

 		public void Exit()
 		{
 			exiting = true;
-			m_thread.Abort();
+			m_thread.Abort(); // hard exit the thread
 		}
 
 		void HandleParentResize(object sender, EventArgs e)
 				while (Gtk.Application.EventsPending()) {
 					Gtk.Application.RunIteration(true);
 				}
-				System.Threading.Thread.Sleep(100);
+				
+				if (gtkWrapper.exiting)
+					break;
+				
+				Gtk.Application.RunIteration(true); // block until event is received.
 			}
 		}
 	}