diff --git a/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java b/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
index 1ce45bc8deeb224280fdb6f3b974b6418ccb1649..4f26123167ae3643d7cadf26c3f48388488dd84c 100644
--- a/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
+++ b/briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
@@ -244,7 +244,8 @@ public interface DatabaseComponent {
 
 	/**
 	 * Increments the outgoing connection counter for the given endpoint
-	 * in the given rotation period and returns the old value of the counter.
+	 * in the given rotation period and returns the old value, or -1 if the
+	 * counter does not exist.
 	 */
 	long incrementConnectionCounter(ContactId c, TransportId t, long period)
 			throws DbException;
diff --git a/briar-core/src/net/sf/briar/db/Database.java b/briar-core/src/net/sf/briar/db/Database.java
index 5aa63ee7e5ec45272654fd24e94d8f45ae6c1028..9fdeae416b6748bc1c98be24aa36dd79cc90d414 100644
--- a/briar-core/src/net/sf/briar/db/Database.java
+++ b/briar-core/src/net/sf/briar/db/Database.java
@@ -577,8 +577,9 @@ interface Database<T> {
 	boolean hasSendableMessages(T txn, ContactId c) throws DbException;
 
 	/**
-	 * Increments the outgoing connection counter for the given contact
-	 * transport in the given rotation period and returns the old value;
+	 * Increments the outgoing connection counter for the given endpoint
+	 * in the given rotation period and returns the old value, or -1 if the
+	 * counter does not exist.
 	 * <p>
 	 * Locking: window write.
 	 */