Skip to content

Commit aaa6488

Browse files
committed
available() returns false if not connected
1 parent 0cf51c1 commit aaa6488

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FirebaseArduino.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ void FirebaseArduino::stream(const String& path) {
133133
bool FirebaseArduino::available() {
134134
if (!http_->connected()) {
135135
error_ = FirebaseError(HTTP_CONNECTION_LOST, "Connection Lost");
136+
return false;
136137
}
137138
return http_->getStreamPtr()->available();
138139
}

0 commit comments

Comments
 (0)