Commit b20a7fab authored by Oleh Astappiev's avatar Oleh Astappiev
Browse files

Check channel is not null before closing

parent b39edb62
......@@ -351,8 +351,10 @@ public class SHSClient {
}
public void close() {
channel.Close();
channel = null;
if (channel != null) {
channel.Close();
channel = null;
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment