Fixed null when creating GunSuperPeer (storage is null in dispatcher)

This commit is contained in:
ChronosX88 2019-05-10 19:50:08 +04:00
parent 2617e8b7cd
commit 908a652503
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ plugins {
}
group 'io.github.chronosx88'
version '0.2.5'
version '0.2.6'
sourceCompatibility = 1.8

View File

@ -18,7 +18,7 @@ public class GunSuperPeer extends WebSocketServer implements Peer {
public GunSuperPeer(int port, StorageBackend storageBackend) {
super(new InetSocketAddress(port));
setReuseAddr(true);
dispatcher = new Dispatcher(graph, this, dup);
dispatcher = new Dispatcher(storageBackend, this, dup);
this.graph = storageBackend;
}