Download more RAM (reword this in a rebase plz)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import gc
|
||||
|
||||
import kmk.handlers.layers as layers
|
||||
import kmk.handlers.modtap as modtap
|
||||
import kmk.handlers.stock as handlers
|
||||
@@ -285,6 +287,7 @@ def make_key(
|
||||
'''
|
||||
|
||||
global NEXT_AVAILABLE_KEY
|
||||
gc.collect()
|
||||
|
||||
if type == KEY_SIMPLE:
|
||||
constructor = Key
|
||||
@@ -306,7 +309,9 @@ def make_key(
|
||||
|
||||
key = constructor(code=code, **kwargs)
|
||||
|
||||
gc.collect()
|
||||
register_key_names(key, names)
|
||||
gc.collect()
|
||||
|
||||
return key
|
||||
|
||||
|
Reference in New Issue
Block a user