Skip to content
Snippets Groups Projects
Commit 1c8b1ee9 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Cleaned up debug statements, fixed a bug where the wrong function was matched in IrcUser

parent 8d8df245
Branches
Tags
No related merge requests found
......@@ -332,8 +332,6 @@ public class CoreConnection {
Heartbeat heartbeat = new Heartbeat();
busProvider.dispatch(heartbeat);
Log.d("libquassel", "Sending heartbeat");
Thread.sleep(30 * 1000);
}
} catch (InterruptedException e) {
......
......@@ -432,6 +432,8 @@ public class QClient extends AClient {
public void bufferSync(@NonNull SyncFunction packedFunc) {
String key = hashName(packedFunc.className, packedFunc.objectName);
if (connectionStatus() == ConnectionChangeEvent.Status.CONNECTED)
Log.d("libquassel", "Queueing sync: " + packedFunc);
if (!bufferedSyncs.containsKey(key))
bufferedSyncs.put(key, new LinkedList<>());
bufferedSyncs.get(key).add(packedFunc);
......
......@@ -413,11 +413,6 @@ public class IrcUser extends AIrcUser<IrcUser> {
}
@Override
public void init(Network network) {
this.network = network;
_update();
}
public void init(QNetwork network) {
this.network = network;
channels = new HashSet<>();
......
......@@ -28,7 +28,6 @@ import org.joda.time.DateTime;
import java.util.List;
import de.kuschku.libquassel.syncables.Synced;
import de.kuschku.libquassel.syncables.types.impl.Network;
public interface QIrcUser {
String user();
......@@ -203,5 +202,5 @@ public interface QIrcUser {
void _removeUserModes(final String modes);
void init(Network network);
void init(QNetwork network);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment