Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b5327b commit b66ae36Copy full SHA for b66ae36
1 file changed
src/_macosx.m
@@ -1903,20 +1903,26 @@ - (void)flagsChanged:(NSEvent *)event
1903
}
1904
1905
1906
-static PyObject*
1907
-Timer__timer_stop(Timer* self)
+static void
+Timer__timer_stop_impl(Timer* self)
1908
{
1909
if (self->timer) {
1910
[self->timer invalidate];
1911
self->timer = NULL;
1912
1913
+}
1914
+
1915
+static PyObject*
1916
+Timer__timer_stop(Timer* self)
1917
+{
1918
+ Timer__timer_stop_impl(self);
1919
Py_RETURN_NONE;
1920
1921
1922
static void
1923
Timer_dealloc(Timer* self)
1924
- Timer__timer_stop(self);
1925
1926
Py_TYPE(self)->tp_free((PyObject*)self);
1927
1928
0 commit comments