mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +05:30
Run server on new thread. (#297)
This commit is contained in:
parent
943e4a3de8
commit
3a009407ad
@ -42,7 +42,13 @@ public class Main {
|
||||
}
|
||||
}, 0, TimeUnit.MINUTES.toMillis(60));
|
||||
|
||||
new ServerLauncher().launch(args);
|
||||
new Thread(() -> {
|
||||
try {
|
||||
new ServerLauncher().launch(args);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}).start();
|
||||
|
||||
if (Constants.DISABLE_TIMERS)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user