Fix TelegramStreamV2.Close()

master
Harald Wolff 2018-02-21 14:24:52 +01:00
parent b9f731f7d7
commit a5d8ec3a28
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,10 @@ public class TelegramStreamV2 extends ServiceLinkStream {
@Override
void close() {
this.streamContainer.close();
exceptionCaught = true;
if (this.streamContainer != null) {
this.streamContainer.close();
exceptionCaught = true;
}
}
@Override