def uninstall_twisted_reactor():
 import twisted
 if (not hasattr(twisted, '_kivy_twisted_reactor_installed')):
  return
 from kivy.base import EventLoop
 global _twisted_reactor_stopper
 _twisted_reactor_stopper()
 EventLoop.unbind(on_stop=_twisted_reactor_stopper)
 del twisted._kivy_twisted_reactor_installed

def uninstall_twisted_reactor ( ) : import twisted if ( not hasattr ( twisted , '_kivy_twisted_reactor_installed' ) ) : return from kivy . base import EventLoop global _twisted_reactor_stopper _twisted_reactor_stopper ( ) EventLoop . unbind ( on_stop = _twisted_reactor_stopper ) del twisted . _kivy_twisted_reactor_installed
uninstalls the kivys threaded twisted reactor .