add forgotten spawndaemonthreads and added license info to bulma extension files
This commit is contained in:
parent
086f2f718c
commit
ab10cea8b6
7 changed files with 562 additions and 1 deletions
14
src/onionrcommands/daemonlaunch/spawndaemonthreads.py
Normal file
14
src/onionrcommands/daemonlaunch/spawndaemonthreads.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
from onionrthreads import add_onionr_thread
|
||||
from communicator.onlinepeers import get_online_peers
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from deadsimplekv import DeadSimpleKV
|
||||
from toomanyobjs import TooMany
|
||||
|
||||
|
||||
|
||||
def spawn_client_threads(shared_state: 'TooMany'):
|
||||
kv: 'DeadSimpleKV' = shared_state.get_by_string('DeadSimpleKV')
|
||||
add_onionr_thread(get_online_peers, (shared_state,), 3, 1)
|
Loading…
Add table
Add a link
Reference in a new issue