WiFi101 Status does not change even with dropped connection

Hi I'm looking for some help on this issue of the shield dropping its connection.

I am running this connection check

void loop() {
// check the network status connection once every 10 seconds:
delay(10000);
Serial.println(WiFi.status());
}

And even if the connection is shut down (router loses power), the status never changes. It still believes it is connected.

I was hoping to implement a fail safe in the case of dropped connection that it would attempt to reconnect.

I have been working under the assumption that this status should change if the connection did drop, is this correct?

Thanks

@BoHeck I've submitted the following pull request to resolve this: Call m2m_wifi_handle_events from WiFiClass::status() by sandeepmistry · Pull Request #45 · arduino-libraries/WiFi101 · GitHub

Once it is merged, your code snippet will work as expected.