mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add null check for pubsub.
This commit is contained in:
parent
a1ed146924
commit
e03f2661b4
1 changed files with 10 additions and 9 deletions
|
@ -44,6 +44,7 @@ public class Main {
|
|||
Collections.shuffle(channels);
|
||||
|
||||
for (String channelId : channels)
|
||||
if (channelId != null)
|
||||
Multithreading.runAsyncLimitedPubSub(() -> {
|
||||
Session sess = DatabaseSessionFactory.createSession();
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue