MrBin99 / LaravelEchoAndroid

Laravel Echo Android client
GNU General Public License v3.0
49 stars 22 forks source link

Prevent a crash when checking if a socket is connected before establishing the first connection #24

Closed fergusonm closed 3 years ago

fergusonm commented 3 years ago

Since the socket object is initialized in the connect method this PR fixes a crash by adding a null check in case isConnected is called before the first connection is established.