just checked. it is working. but the issue I faced was because I went for another way by switching on hotspot using widget of Bixby routines. I think hence the problem. Thanks brother. Find it out.
that is for switching off if there is no connection is there from hotspot is switched on, no? But it is not disabling automatically if someone connects and then they disconnect from their side. My horspot stay on till I switch off manually.