disconnect_sync


Description:

[ Version ( since = "3.6" ) ]
public virtual bool disconnect_sync (bool clean, Cancellable? cancellable = null) throws Error

Disconnect from the service.

If clean is false, it should not try to do any synchronizing or other cleanup of the connection.

If a disconnect operation is already in progress when this function is called, its results will be reflected in this disconnect operation.

If any connect operations are in progress when this function is called, they will be cancelled.

Parameters:

this

a Service

clean

whether or not to try to disconnect cleanly

cancellable

optional Cancellable object, or null

Returns:

true if the connection was severed or false otherwise