Krzysztof Kotlarek f530378df3 FIX: Restore for non-multisite is not raising an error on reconnect step (#8237)
That commit introduced a bug to the system: f69dacf979

Restore works fine for multisite, however, stopped working for non-multisite.

Reason for that was that `establish_connection` method got a check if the multisite instance is available:
```
    def self.instance
      @instance
    end

    def self.establish_connection(opts)
      @instance.establish_connection(opts) if @instance
    end
```
However, the reload method don't have that check
```
    def self.reload
      @instance = new(instance.config_filename)
    end
```

To solve it, let's ensure we are in a multisite environment before call reload
2019-10-24 11:46:22 +11:00
..
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-08-07 16:39:58 +05:30
2014-03-11 03:18:57 -04:00
2019-05-22 17:39:44 +03:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-17 13:38:31 -03:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-10 11:46:28 -04:00
2019-10-21 12:08:20 +01:00