Fix bug in register_loop_callback(). If the mainloop had already
started, calls to it would fail with a NameError (map). The fix is to using the global _looping to hold the socket map used by the current loop() call. Also reformat the code and add some doc strings.
Showing
Please register or sign in to comment