Declare the set of handled signals in only one place
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ ensure_state(DiskCache *self) {
|
||||
int ret;
|
||||
if (self->fully_initialized) return true;
|
||||
if (!self->loop_data_inited) {
|
||||
if (!init_loop_data(&self->loop_data)) { PyErr_SetFromErrno(PyExc_OSError); return false; }
|
||||
if (!init_loop_data(&self->loop_data, 0)) { PyErr_SetFromErrno(PyExc_OSError); return false; }
|
||||
self->loop_data_inited = true;
|
||||
}
|
||||
if (!self->currently_writing.hash_key) {
|
||||
|
||||
Reference in New Issue
Block a user