diff --git a/relay_handler.js b/relay_handler.js
index <HASH>..<HASH> 100644
--- a/relay_handler.js
+++ b/relay_handler.js
@@ -913,7 +913,7 @@ RelayRequest.prototype.createOutRequest = function createOutRequest() {
 RelayRequest.prototype.onIdentified = function onIdentified() {
     var self = this;
 
-    var conn = chooseRelayPeerConnection(self.peer);
+    var conn = self.peer.getInConnection(true);
     if (!conn.remoteName) {
         // we get the problem
         self.logger.error('onIdentified called on no connection identified', {
@@ -1079,12 +1079,3 @@ function logError(logger, err, codeName, extendLogInfo) {
         logger.info('expected error while forwarding', info);
     }
 }
-
-function chooseRelayPeerConnection(peer) {
-    var conn = null;
-    for (var i = 0; i < peer.connections.length; i++) {
-        conn = peer.connections[i];
-        if (conn.remoteName && !conn.closing) break;
-    }
-    return conn;
-}
relay_handler: re-use peer.getInConnection() method