File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -636,14 +636,21 @@ Server.prototype._handlePathFind = function(message) {
636
636
} ;
637
637
638
638
/**
639
- * Handle subscription response messages. Subscription response
640
- * messages indicate that a connection to the server is ready
639
+ * Handle initial subscription response message. The server is considered
640
+ * `connected` after it has received a response to initial subscription to
641
+ * ledger and server streams
641
642
*
642
643
* @param {Object } message
643
644
* @api private
644
645
*/
645
646
646
647
Server . prototype . _handleResponseSubscribe = function ( message ) {
648
+ if ( this . isConnected ( ) ) {
649
+ // This function only concerns initializing the server's internal
650
+ // state after a connection
651
+ return ;
652
+ }
653
+
647
654
if ( ! this . _remote . _allow_partial_history
648
655
&& ! Server . hasFullLedgerHistory ( message ) ) {
649
656
// Server has partial history and Remote has been configured to disallow
You can’t perform that action at this time.
0 commit comments