Safe guard some functions

This commit is contained in:
斟酌 鵬兄 2023-02-01 06:55:00 +08:00
parent f4ae670848
commit 42d86a5a92

View File

@ -62,6 +62,9 @@ class ClientCompat
async DEL( key, handler )
{
if( !handler )
throw new Error( "handler cannot be undefined" );
try
{
await this._connect();